From e786ef02683d6f3481d78fe580da47ea43dfaf5b Mon Sep 17 00:00:00 2001 From: Cedric BAIL Date: Tue, 2 Aug 2011 16:44:47 +0000 Subject: [PATCH] emotion: and now live streaming are also working. SVN revision: 62014 --- legacy/emotion/src/modules/gstreamer/emotion_gstreamer.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/legacy/emotion/src/modules/gstreamer/emotion_gstreamer.c b/legacy/emotion/src/modules/gstreamer/emotion_gstreamer.c index cf22e3d546..d8c24c7b0f 100644 --- a/legacy/emotion/src/modules/gstreamer/emotion_gstreamer.c +++ b/legacy/emotion/src/modules/gstreamer/emotion_gstreamer.c @@ -1492,6 +1492,10 @@ _emotion_gstreamer_video_pipeline_parse(Emotion_Gstreamer_Video *ev, if (ev->thread) 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))