plugins/elements/gstinputselector.c: Release the selector lock when pad alloc happens...
authorWim Taymans <wim.taymans@gmail.com>
Thu, 20 Mar 2008 17:48:49 +0000 (17:48 +0000)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Fri, 31 Dec 2010 00:53:18 +0000 (00:53 +0000)
Original commit message from CVS:
* plugins/elements/gstinputselector.c: (gst_selector_pad_class_init),
(gst_selector_pad_event), (gst_selector_pad_bufferalloc),
(gst_selector_pad_chain), (gst_input_selector_set_active_pad):
Release the selector lock when pad alloc happens on a non selected pad.

plugins/elements/gstinputselector.c

index 852a9be..4f169cf 100644 (file)
@@ -480,6 +480,8 @@ done:
   /* ERRORS */
 not_active:
   {
+    GST_INPUT_SELECTOR_UNLOCK (sel);
+
     /* unselected pad, perform fallback alloc or return unlinked when
      * asked */
     GST_OBJECT_LOCK (selpad);