From 2a070ff65843937e17a9282702ae836e043e2e4f Mon Sep 17 00:00:00 2001 From: cedric Date: Tue, 2 Aug 2011 16:44:47 +0000 Subject: [PATCH] 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 --- src/modules/gstreamer/emotion_gstreamer.c | 4 ++++ 1 file changed, 4 insertions(+) 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)) { -- 2.7.4