adaptivedemux: fix a missing lock in write to stream->last_ret
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Fri, 30 Oct 2015 12:24:22 +0000 (12:24 +0000)
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Fri, 30 Oct 2015 12:24:22 +0000 (12:24 +0000)
https://bugzilla.gnome.org/show_bug.cgi?id=757359

gst-libs/gst/adaptivedemux/gstadaptivedemux.c

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