decodebin2: fix "Attempt to unlock mutex that was not locked"
authorTim-Philipp Müller <tim@centricular.com>
Wed, 2 Dec 2015 18:16:05 +0000 (18:16 +0000)
committerTim-Philipp Müller <tim@centricular.com>
Wed, 2 Dec 2015 18:16:05 +0000 (18:16 +0000)
Introduced in commit ee44337f, caused the decodebin
test_text_plain_streams unit test to abort.

https://bugzilla.gnome.org/show_bug.cgi?id=752651

gst/playback/gstdecodebin2.c

index 0e91482..d402527 100644 (file)
@@ -2867,8 +2867,9 @@ type_found (GstElement * typefind, guint probability,
   gst_object_unref (sink_pad);
   gst_object_unref (pad);
 
-exit:
   EXPOSE_UNLOCK (decode_bin);
+
+exit:
   return;
 }