[190/906] force calling glimagesink->stop() when going from PAUSED to READY

This commit is contained in:
Julien Isorce 2008-08-18 18:53:13 +02:00 committed by Matthew Waters
parent f8f81eae40
commit b770c7cd04

View file

@ -277,6 +277,7 @@ gst_glimage_sink_change_state (GstElement* element, GstStateChange transition)
case GST_STATE_CHANGE_PLAYING_TO_PAUSED:
break;
case GST_STATE_CHANGE_PAUSED_TO_READY:
gst_glimage_sink_stop (GST_BASE_SINK (glimage_sink));
glimage_sink->fps_n = 0;
glimage_sink->fps_d = 1;
GST_VIDEO_SINK_WIDTH (glimage_sink) = 0;