Commit fc67e1db authored by Sebastian Dröge's avatar Sebastian Dröge 🍵

adaptivedemux: Release the manifest mutex before waiting for a download

Otherwise we will hurt parallel downloads in the best case, and often cause
deadlocks.
parent 1ba8f82b
......@@ -2040,12 +2040,13 @@ gst_adaptive_demux_stream_download_loop (GstAdaptiveDemuxStream * stream)
if (live) {
gint64 wait_time =
gst_adaptive_demux_stream_get_fragment_waiting_time (demux, stream);
GST_MANIFEST_UNLOCK (demux);
if (wait_time > 0)
gst_adaptive_demux_stream_download_wait (stream, wait_time);
} else {
GST_MANIFEST_UNLOCK (demux);
}
GST_MANIFEST_UNLOCK (demux);
GST_OBJECT_LOCK (demux);
if (demux->cancelled) {
stream->last_ret = GST_FLOW_FLUSHING;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment