mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-29 05:01:23 +00:00
audiodecoder: Don't output an (unreffed) buffer in error cases
This commit is contained in:
parent
24bab1e5a8
commit
6e33f2d464
1 changed files with 2 additions and 1 deletions
|
@ -1108,9 +1108,10 @@ gst_audio_decoder_finish_frame (GstAudioDecoder * dec, GstBuffer * buf,
|
||||||
if (G_UNLIKELY (dec->priv->error_count))
|
if (G_UNLIKELY (dec->priv->error_count))
|
||||||
dec->priv->error_count--;
|
dec->priv->error_count--;
|
||||||
|
|
||||||
exit:
|
|
||||||
ret = gst_audio_decoder_output (dec, buf);
|
ret = gst_audio_decoder_output (dec, buf);
|
||||||
|
|
||||||
|
exit:
|
||||||
|
|
||||||
GST_AUDIO_DECODER_STREAM_UNLOCK (dec);
|
GST_AUDIO_DECODER_STREAM_UNLOCK (dec);
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
|
Loading…
Reference in a new issue