Commit 6e33f2d4 authored by Sebastian Dröge's avatar Sebastian Dröge
Browse files

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

parent 24bab1e5
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment