dont touch img2 in vdieo thumbs if they are not there
This commit is contained in:
parent
8726c95e2b
commit
9125400e97
|
@ -77,12 +77,15 @@ _thumb_update(Evas_Object *obj)
|
||||||
|
|
||||||
if (!sd) return;
|
if (!sd) return;
|
||||||
snprintf(buf, sizeof(buf), "%u", sd->realpos);
|
snprintf(buf, sizeof(buf), "%u", sd->realpos);
|
||||||
|
if (sd->o_img2)
|
||||||
|
{
|
||||||
evas_object_image_file_set(sd->o_img2, NULL, NULL);
|
evas_object_image_file_set(sd->o_img2, NULL, NULL);
|
||||||
evas_object_image_file_set(sd->o_img2, sd->realfile,
|
evas_object_image_file_set(sd->o_img2, sd->realfile,
|
||||||
sd->poster ? NULL : buf);
|
sd->poster ? NULL : buf);
|
||||||
evas_object_image_preload(sd->o_img2, EINA_FALSE);
|
evas_object_image_preload(sd->o_img2, EINA_FALSE);
|
||||||
evas_object_smart_callback_call(obj, "loaded", NULL);
|
evas_object_smart_callback_call(obj, "loaded", NULL);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_thumb_match_update(Evas_Object *obj, const char *file)
|
_thumb_match_update(Evas_Object *obj, const char *file)
|
||||||
|
@ -357,9 +360,12 @@ _videothumb_eval(Evas_Object *obj, Eina_Bool force)
|
||||||
sd->o_img2 = NULL;
|
sd->o_img2 = NULL;
|
||||||
}
|
}
|
||||||
_videothumb_image_load(obj);
|
_videothumb_image_load(obj);
|
||||||
|
if (sd->o_img2)
|
||||||
|
{
|
||||||
evas_object_move(sd->o_img2, ox, oy);
|
evas_object_move(sd->o_img2, ox, oy);
|
||||||
evas_object_resize(sd->o_img2, ow, oh);
|
evas_object_resize(sd->o_img2, ow, oh);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (seen != sd->seen)
|
if (seen != sd->seen)
|
||||||
|
@ -373,9 +379,12 @@ _videothumb_eval(Evas_Object *obj, Eina_Bool force)
|
||||||
sd->o_img2 = NULL;
|
sd->o_img2 = NULL;
|
||||||
}
|
}
|
||||||
_videothumb_image_load(obj);
|
_videothumb_image_load(obj);
|
||||||
|
if (sd->o_img2)
|
||||||
|
{
|
||||||
evas_object_move(sd->o_img2, ox, oy);
|
evas_object_move(sd->o_img2, ox, oy);
|
||||||
evas_object_resize(sd->o_img2, ow, oh);
|
evas_object_resize(sd->o_img2, ow, oh);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (sd->o_img2)
|
if (sd->o_img2)
|
||||||
|
|
Loading…
Reference in New Issue