mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-09-06 12:08:10 +00:00
audioencoder: Plug buffer-leak
https://bugzilla.gnome.org/show_bug.cgi?id=773107
This commit is contained in:
parent
409534f242
commit
63c1f4aa33
1 changed files with 2 additions and 0 deletions
|
@ -789,6 +789,8 @@ gst_audio_encoder_finish_frame (GstAudioEncoder * enc, GstBuffer * buf,
|
||||||
ret = GST_FLOW_FLUSHING;
|
ret = GST_FLOW_FLUSHING;
|
||||||
else
|
else
|
||||||
ret = GST_FLOW_NOT_NEGOTIATED;
|
ret = GST_FLOW_NOT_NEGOTIATED;
|
||||||
|
if (buf)
|
||||||
|
gst_buffer_unref (buf);
|
||||||
goto exit;
|
goto exit;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue