From: cedric Date: Tue, 2 Aug 2011 16:44:47 +0000 (+0000) Subject: emotion: and now live streaming are also working. X-Git-Tag: submit/2.0alpha-wayland/20121127.222018~210 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2a070ff65843937e17a9282702ae836e043e2e4f;p=profile%2Fivi%2Femotion.git emotion: and now live streaming are also working. git-svn-id: http://svn.enlightenment.org/svn/e/trunk/emotion@62014 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/src/modules/gstreamer/emotion_gstreamer.c b/src/modules/gstreamer/emotion_gstreamer.c index cf22e3d..d8c24c7 100644 --- a/src/modules/gstreamer/emotion_gstreamer.c +++ b/src/modules/gstreamer/emotion_gstreamer.c @@ -1493,6 +1493,10 @@ _emotion_gstreamer_video_pipeline_parse(Emotion_Gstreamer_Video *ev, return EINA_FALSE; res = gst_element_get_state(ev->pipeline, NULL, NULL, GST_CLOCK_TIME_NONE); + if (res == GST_STATE_CHANGE_NO_PREROLL) + gst_element_set_state(ev->pipeline, GST_STATE_PLAYING); + + res = gst_element_get_state(ev->pipeline, NULL, NULL, GST_CLOCK_TIME_NONE); if (!(res == GST_STATE_CHANGE_SUCCESS || res == GST_STATE_CHANGE_NO_PREROLL)) {