From: cedric Date: Fri, 24 Jun 2011 12:26:29 +0000 (+0000) Subject: emotion: advertise native resolution. X-Git-Tag: 2.0_alpha~202 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3504367afef2f0ec53e2d81e7487b3a5f87a3c06;p=framework%2Fuifw%2Femotion.git emotion: advertise native resolution. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/emotion@60664 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/lib/emotion_smart.c b/src/lib/emotion_smart.c index bdee730..f67ec10 100644 --- a/src/lib/emotion_smart.c +++ b/src/lib/emotion_smart.c @@ -1180,6 +1180,7 @@ _emotion_frame_resize(Evas_Object *obj, int w, int h, double ratio) changed = 1; } if (changed) evas_object_smart_callback_call(obj, SIG_FRAME_RESIZE, NULL); + evas_object_size_hint_request_set(obj, w, h); } EAPI void diff --git a/src/modules/gstreamer/emotion_gstreamer.c b/src/modules/gstreamer/emotion_gstreamer.c index d48c457..0c3f6fd 100644 --- a/src/modules/gstreamer/emotion_gstreamer.c +++ b/src/modules/gstreamer/emotion_gstreamer.c @@ -620,6 +620,7 @@ em_file_open(const char *file, vstream = eina_list_data_get(ev->video_streams); ev->ratio = (double)vstream->width / (double)vstream->height; + _emotion_frame_resize(ev->obj, vstream->width, vstream->height, ev->ratio); } { @@ -650,7 +651,7 @@ em_file_open(const char *file, _free_metadata(ev->metadata); ev->metadata = calloc(1, sizeof(Emotion_Gstreamer_Metadata)); - em_audio_channel_volume_set(ev, ev->volume); + em_audio_channel_volume_set(ev, ev->volume); _eos_timer_fct(ev); _emotion_open_done(ev->obj); diff --git a/src/modules/gstreamer/emotion_sink.c b/src/modules/gstreamer/emotion_sink.c index 572185b..54c3a66 100644 --- a/src/modules/gstreamer/emotion_sink.c +++ b/src/modules/gstreamer/emotion_sink.c @@ -508,11 +508,8 @@ static void evas_video_sink_render_handler(void *data, vstream->height = priv->height; ev->ratio = (double) priv->width / (double) priv->height; - if (vstream) - { - _emotion_video_pos_update(ev->obj, ev->position, vstream->length_time); - _emotion_frame_resize(ev->obj, vstream->width, vstream->height, ev->ratio); - } + _emotion_video_pos_update(ev->obj, ev->position, vstream->length_time); + _emotion_frame_resize(ev->obj, priv->width, priv->height, ev->ratio); exit_point: gst_buffer_unref(buffer); diff --git a/src/modules/xine/emotion_xine.c b/src/modules/xine/emotion_xine.c index 3738f6a..de02e3b 100644 --- a/src/modules/xine/emotion_xine.c +++ b/src/modules/xine/emotion_xine.c @@ -1268,6 +1268,7 @@ _em_fd_ev_active(void *data __UNUSED__, Ecore_Fd_Handler *fdh) ev->anim = NULL; } _emotion_open_done(ev->obj); + _emotion_frame_resize(ev->obj, ev->w, ev->h, ev->ratio); break; case 3: /* shutdown done */ if (ev->anim)