From: Sebastian Dröge Date: Fri, 14 Sep 2012 12:53:16 +0000 (+0200) Subject: audiodecoder: Don't output an (unreffed) buffer in error cases X-Git-Tag: 1.19.3~511^2~5883 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6e33f2d46467c3a1313a5d6e9a52b48eb6d03168;p=platform%2Fupstream%2Fgstreamer.git audiodecoder: Don't output an (unreffed) buffer in error cases --- diff --git a/gst-libs/gst/audio/gstaudiodecoder.c b/gst-libs/gst/audio/gstaudiodecoder.c index 0bb2429..003ec8c 100644 --- a/gst-libs/gst/audio/gstaudiodecoder.c +++ b/gst-libs/gst/audio/gstaudiodecoder.c @@ -1108,9 +1108,10 @@ gst_audio_decoder_finish_frame (GstAudioDecoder * dec, GstBuffer * buf, if (G_UNLIKELY (dec->priv->error_count)) dec->priv->error_count--; -exit: ret = gst_audio_decoder_output (dec, buf); +exit: + GST_AUDIO_DECODER_STREAM_UNLOCK (dec); return ret;