mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-03 16:09:39 +00:00
matroska-demux: don't leak audio codec_data buffer
This commit is contained in:
parent
4b06e3095a
commit
ad245a0dc2
1 changed files with 1 additions and 0 deletions
|
@ -5266,6 +5266,7 @@ gst_matroska_demux_audio_caps (GstMatroskaTrackAudioContext *
|
||||||
"framed", G_TYPE_BOOLEAN, TRUE, NULL);
|
"framed", G_TYPE_BOOLEAN, TRUE, NULL);
|
||||||
gst_caps_set_simple (caps, "codec_data", GST_TYPE_BUFFER, priv, NULL);
|
gst_caps_set_simple (caps, "codec_data", GST_TYPE_BUFFER, priv, NULL);
|
||||||
*codec_name = g_strdup_printf ("MPEG-%d AAC audio", mpegversion);
|
*codec_name = g_strdup_printf ("MPEG-%d AAC audio", mpegversion);
|
||||||
|
gst_buffer_unref (priv);
|
||||||
}
|
}
|
||||||
} else if (!strcmp (codec_id, GST_MATROSKA_CODEC_ID_AUDIO_TTA)) {
|
} else if (!strcmp (codec_id, GST_MATROSKA_CODEC_ID_AUDIO_TTA)) {
|
||||||
caps = gst_caps_new_simple ("audio/x-tta",
|
caps = gst_caps_new_simple ("audio/x-tta",
|
||||||
|
|
Loading…
Reference in a new issue