hlsdemux: make sure the fetcher state change is complete before continuing

This commit is contained in:
Andoni Morales Alastruey 2011-02-16 03:49:49 +01:00 committed by Sebastian Dröge
parent c580ff26a4
commit 4602b42dee

View file

@ -431,6 +431,7 @@ gst_hls_demux_stop_fetcher (GstHLSDemux * demux, gboolean cancelled)
demux->stopping_fetcher = TRUE;
/* set the element state to NULL */
gst_element_set_state (demux->fetcher, GST_STATE_NULL);
gst_element_get_state (demux->fetcher, NULL, NULL, GST_CLOCK_TIME_NONE);
/* unlink it from the internal pad */
pad = gst_pad_get_peer (demux->fetcherpad);
if (pad) {