matroskademux: Don't unlock stream lock without locking it first
authorBruno Gonzalez <stenyak@gmail.com>
Fri, 14 Jun 2013 12:09:50 +0000 (14:09 +0200)
committerSebastian Dröge <slomo@circular-chaos.org>
Fri, 14 Jun 2013 12:10:13 +0000 (14:10 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=702167

gst/matroska/matroska-demux.c

index 388e166..2a717f6 100644 (file)
@@ -2090,8 +2090,10 @@ next:
     gst_pad_pause_task (demux->common.sinkpad);
   }
   /* ouch */
-  if (!update)
+  if (!update) {
+    GST_PAD_STREAM_LOCK (demux->common.sinkpad);
     goto exit;
+  }
 
   /* now grab the stream lock so that streaming cannot continue, for
    * non flushing seeks when the element is in PAUSED this could block