mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 17:20:36 +00:00
hlsdemux: make sure the fetcher state change is complete before continuing
This commit is contained in:
parent
c580ff26a4
commit
4602b42dee
1 changed files with 1 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue