From e89a48616bbd030e520d4f22a2a919b3d3dba355 Mon Sep 17 00:00:00 2001 From: Bruno Gonzalez Date: Fri, 14 Jun 2013 14:09:50 +0200 Subject: [PATCH] matroskademux: Don't unlock stream lock without locking it first https://bugzilla.gnome.org/show_bug.cgi?id=702167 --- gst/matroska/matroska-demux.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gst/matroska/matroska-demux.c b/gst/matroska/matroska-demux.c index 388e1666d3..2a717f6eb9 100644 --- a/gst/matroska/matroska-demux.c +++ b/gst/matroska/matroska-demux.c @@ -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