adaptivedemux: Also call reset() in READY->PAUSED

This allows subclasses to have initialization code in a single place.
This commit is contained in:
Sebastian Dröge 2016-07-29 12:31:38 +03:00
parent 1990d4337b
commit c1982d8b2f

View file

@ -537,6 +537,7 @@ gst_adaptive_demux_change_state (GstElement * element,
break;
case GST_STATE_CHANGE_READY_TO_PAUSED:
GST_MANIFEST_LOCK (demux);
gst_adaptive_demux_reset (demux);
demux->running = TRUE;
GST_MANIFEST_UNLOCK (demux);
break;