emotion: and now live streaming are also working.
authorcedric <cedric>
Tue, 2 Aug 2011 16:44:47 +0000 (16:44 +0000)
committercedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 2 Aug 2011 16:44:47 +0000 (16:44 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/emotion@62014 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/modules/gstreamer/emotion_gstreamer.c

index cf22e3d..d8c24c7 100644 (file)
@@ -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))
      {