adaptivedemux: fix a missing lock in write to stream->last_ret

https://bugzilla.gnome.org/show_bug.cgi?id=757359
This commit is contained in:
Vincent Penquerc'h 2015-10-30 12:24:22 +00:00
parent ef466b46d3
commit 7d909966e5

View file

@ -1854,8 +1854,8 @@ _src_chain (GstPad * pad, GstObject * parent, GstBuffer * buffer)
if (G_UNLIKELY (stream->cancelled)) { if (G_UNLIKELY (stream->cancelled)) {
g_mutex_unlock (&stream->fragment_download_lock); g_mutex_unlock (&stream->fragment_download_lock);
gst_buffer_unref (buffer); gst_buffer_unref (buffer);
GST_MANIFEST_UNLOCK (demux);
ret = stream->last_ret = GST_FLOW_FLUSHING; ret = stream->last_ret = GST_FLOW_FLUSHING;
GST_MANIFEST_UNLOCK (demux);
return ret; return ret;
} }
g_mutex_unlock (&stream->fragment_download_lock); g_mutex_unlock (&stream->fragment_download_lock);