From: cedric Date: Sat, 5 Nov 2011 11:58:41 +0000 (+0000) Subject: evas: always retrieve the latest available pixels for a video. X-Git-Tag: 2.0_alpha~179^2~13 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=388e0e4a7e326bde0f68c288e3a51a61165256da;p=framework%2Fuifw%2Fevas.git evas: always retrieve the latest available pixels for a video. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@64755 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/canvas/evas_object_image.c b/src/lib/canvas/evas_object_image.c index 04b706b..eadcfb3 100644 --- a/src/lib/canvas/evas_object_image.c +++ b/src/lib/canvas/evas_object_image.c @@ -845,6 +845,8 @@ evas_object_image_data_convert(Evas_Object *obj, Evas_Colorspace to_cspace) obj); } if (!o->engine_data) return NULL; + if (o->video_surface) + o->video.update_pixels(o->video.data, obj, &o->video); if (o->cur.cspace == to_cspace) return NULL; data = NULL; o->engine_data = obj->layer->evas->engine.func->image_data_get(obj->layer->evas->engine.data.output, @@ -1708,7 +1710,6 @@ evas_object_image_video_surface_set(Evas_Object *obj, Evas_Video_Surface *surf) if (surf) { - fprintf(stderr, "video surface ?\n"); if (surf->version != EVAS_VIDEO_SURFACE_VERSION) return ; if (!surf->update_pixels || @@ -1722,7 +1723,6 @@ evas_object_image_video_surface_set(Evas_Object *obj, Evas_Video_Surface *surf) o->video_surface = 1; o->video = *surf; - fprintf(stderr, "yes\n"); obj->layer->evas->video_objects = eina_list_append(obj->layer->evas->video_objects, obj); } else