emotion: and now live streaming are also working.

SVN revision: 62014
This commit is contained in:
Cedric BAIL 2011-08-02 16:44:47 +00:00
parent 171186e10c
commit e786ef0268
1 changed files with 4 additions and 0 deletions

View File

@ -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))