mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-13 02:45:35 +00:00
audiodecoder: fix buffer leak in error code path
This commit is contained in:
parent
a37f4eeff8
commit
1066690b14
1 changed files with 3 additions and 1 deletions
|
@ -1231,8 +1231,10 @@ gst_audio_decoder_finish_frame (GstAudioDecoder * dec, GstBuffer * buf,
|
|||
|
||||
if (buf) {
|
||||
ret = check_pending_reconfigure (dec);
|
||||
if (ret == GST_FLOW_FLUSHING || ret == GST_FLOW_NOT_NEGOTIATED)
|
||||
if (ret == GST_FLOW_FLUSHING || ret == GST_FLOW_NOT_NEGOTIATED) {
|
||||
gst_buffer_unref (buf);
|
||||
goto exit;
|
||||
}
|
||||
|
||||
if (priv->pending_events)
|
||||
send_pending_events (dec);
|
||||
|
|
Loading…
Reference in a new issue