emotion: do not try to do file_set when no plugin is loaded.

SVN revision: 36530
This commit is contained in:
Gustavo Sverzut Barbieri 2008-10-08 15:38:42 +00:00
parent 5f3c76b84a
commit 0ebceb16a1
1 changed files with 4 additions and 5 deletions

View File

@ -230,6 +230,8 @@ emotion_object_file_set(Evas_Object *obj, const char *file)
E_SMART_OBJ_GET(sd, obj, E_OBJ_NAME);
if (!sd->module) return;
if ((file) && (sd->file) && (!strcmp(file, sd->file))) return;
if ((file) && (file[0] != 0))
{
@ -237,11 +239,8 @@ emotion_object_file_set(Evas_Object *obj, const char *file)
if (sd->file) free(sd->file);
sd->file = strdup(file);
if (sd->module)
{
sd->module->file_close(sd->video);
evas_object_image_size_set(sd->obj, 0, 0);
}
sd->module->file_close(sd->video);
evas_object_image_size_set(sd->obj, 0, 0);
if (!sd->module->file_open(sd->file, obj, sd->video))
return;
sd->module->size_get(sd->video, &w, &h);