matroskademux: Don't unlock stream lock without locking it first

https://bugzilla.gnome.org/show_bug.cgi?id=702167
This commit is contained in:
Bruno Gonzalez 2013-06-14 14:09:50 +02:00 committed by Sebastian Dröge
parent 51c9f7989f
commit e89a48616b

View 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