mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-18 21:35:44 +00:00
hlsdemux: stop the fetcher in the PAUSED_TO_READY transition, not when disposing()
This commit is contained in:
parent
b9a0b4ddd4
commit
cbba7c8bc5
1 changed files with 8 additions and 1 deletions
|
@ -139,7 +139,6 @@ gst_hls_demux_dispose (GObject * obj)
|
|||
{
|
||||
GstHLSDemux *demux = GST_HLS_DEMUX (obj);
|
||||
|
||||
gst_hls_demux_stop_fetcher (demux, TRUE);
|
||||
g_cond_free (demux->fetcher_cond);
|
||||
g_mutex_free (demux->fetcher_lock);
|
||||
|
||||
|
@ -296,6 +295,14 @@ gst_hls_demux_change_state (GstElement * element, GstStateChange transition)
|
|||
}
|
||||
|
||||
ret = GST_ELEMENT_CLASS (parent_class)->change_state (element, transition);
|
||||
|
||||
switch (transition) {
|
||||
case GST_STATE_CHANGE_PAUSED_TO_READY:
|
||||
gst_hls_demux_stop_fetcher (demux, TRUE);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue