mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 16:21:17 +00:00
fdkaacenc: fix buffer leak
https://bugzilla.gnome.org/show_bug.cgi?id=772186
This commit is contained in:
parent
20caebe6a1
commit
95de5bf193
1 changed files with 2 additions and 0 deletions
|
@ -142,11 +142,13 @@ gst_fdkaacdec_set_format (GstAudioDecoder * dec, GstCaps * caps)
|
|||
|
||||
if ((err = aacDecoder_ConfigRaw (self->dec, &data, &size)) != AAC_DEC_OK) {
|
||||
gst_buffer_unmap (codec_data, &map);
|
||||
gst_buffer_unref (codec_data);
|
||||
GST_ERROR_OBJECT (self, "Invalid codec_data: %d", err);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
gst_buffer_unmap (codec_data, &map);
|
||||
gst_buffer_unref (codec_data);
|
||||
}
|
||||
|
||||
if ((err =
|
||||
|
|
Loading…
Reference in a new issue