mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 10:11:08 +00:00
adaptivemutex: Fix double mutex unlock
https://bugzilla.gnome.org/show_bug.cgi?id=779480
This commit is contained in:
parent
6da14bdb88
commit
8d10d29c24
1 changed files with 5 additions and 5 deletions
|
@ -2983,6 +2983,11 @@ gst_adaptive_demux_stream_download_uri (GstAdaptiveDemux * demux,
|
|||
*http_status = stream->last_status_code;
|
||||
}
|
||||
}
|
||||
|
||||
/* changing src element state might try to join the streaming thread, so
|
||||
* we must not hold the manifest lock.
|
||||
*/
|
||||
GST_MANIFEST_UNLOCK (demux);
|
||||
} else {
|
||||
GST_MANIFEST_UNLOCK (demux);
|
||||
if (stream->last_ret == GST_FLOW_OK)
|
||||
|
@ -2990,11 +2995,6 @@ gst_adaptive_demux_stream_download_uri (GstAdaptiveDemux * demux,
|
|||
ret = GST_FLOW_CUSTOM_ERROR;
|
||||
}
|
||||
|
||||
/* changing src element state might try to join the streaming thread, so
|
||||
* we must not hold the manifest lock.
|
||||
*/
|
||||
GST_MANIFEST_UNLOCK (demux);
|
||||
|
||||
stream->src_at_ready = FALSE;
|
||||
|
||||
gst_element_set_locked_state (stream->src, TRUE);
|
||||
|
|
Loading…
Reference in a new issue