playsink: Fix deadlock in the audio/video converter bins when linking fails
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Thu, 2 Jun 2011 09:53:10 +0000 (11:53 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Thu, 2 Jun 2011 09:54:35 +0000 (11:54 +0200)
gst/playback/gstplaysinkaudioconvert.c
gst/playback/gstplaysinkvideoconvert.c

index a179e73..a10ab96 100644 (file)
@@ -248,6 +248,8 @@ link_failed:
     gst_pad_set_blocked_async_full (self->sink_proxypad, FALSE,
         (GstPadBlockCallback) pad_blocked_cb, gst_object_ref (self),
         (GDestroyNotify) gst_object_unref);
+
+    GST_PLAY_SINK_AUDIO_CONVERT_UNLOCK (self);
     return;
   }
 }
index 692da0f..dc87e5f 100644 (file)
@@ -228,6 +228,8 @@ link_failed:
     gst_pad_set_blocked_async_full (self->sink_proxypad, FALSE,
         (GstPadBlockCallback) pad_blocked_cb, gst_object_ref (self),
         (GDestroyNotify) gst_object_unref);
+
+    GST_PLAY_SINK_VIDEO_CONVERT_UNLOCK (self);
     return;
   }
 }