audiodecoder: Don't output an (unreffed) buffer in error cases

This commit is contained in:
Sebastian Dröge 2012-09-14 14:53:16 +02:00
parent 24bab1e5a8
commit 6e33f2d464

View file

@ -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;