From: Sebastian Dröge Date: Thu, 2 Jun 2011 09:53:10 +0000 (+0200) Subject: playsink: Fix deadlock in the audio/video converter bins when linking fails X-Git-Tag: 1.19.3~511^2~6555^2~824 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5c97aa2e5cbd74ba960cc9bc2e1c3d7ae92d51b4;p=platform%2Fupstream%2Fgstreamer.git playsink: Fix deadlock in the audio/video converter bins when linking fails --- diff --git a/gst/playback/gstplaysinkaudioconvert.c b/gst/playback/gstplaysinkaudioconvert.c index a179e73..a10ab96 100644 --- a/gst/playback/gstplaysinkaudioconvert.c +++ b/gst/playback/gstplaysinkaudioconvert.c @@ -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; } } diff --git a/gst/playback/gstplaysinkvideoconvert.c b/gst/playback/gstplaysinkvideoconvert.c index 692da0f..dc87e5f 100644 --- a/gst/playback/gstplaysinkvideoconvert.c +++ b/gst/playback/gstplaysinkvideoconvert.c @@ -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; } }