mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-03 13:02:29 +00:00
adaptivedemux: fix deadlock when stopping streams
Remember to unlock the manifest's lock when leaving the download task.
This commit is contained in:
parent
d0892984bc
commit
87df15a214
1 changed files with 2 additions and 1 deletions
|
@ -1804,6 +1804,7 @@ gst_adaptive_demux_stream_download_loop (GstAdaptiveDemuxStream * stream)
|
|||
GST_OBJECT_LOCK (demux);
|
||||
if (demux->cancelled) {
|
||||
stream->last_ret = GST_FLOW_FLUSHING;
|
||||
GST_MANIFEST_UNLOCK (demux);
|
||||
goto cancelled;
|
||||
}
|
||||
GST_OBJECT_UNLOCK (demux);
|
||||
|
@ -1889,7 +1890,7 @@ gst_adaptive_demux_stream_download_loop (GstAdaptiveDemuxStream * stream)
|
|||
if (gst_adaptive_demux_has_next_period (demux)) {
|
||||
gst_adaptive_demux_advance_period (demux);
|
||||
ret = GST_FLOW_OK;
|
||||
goto end;
|
||||
goto end_of_manifest;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue