mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 17:20:36 +00:00
matroskamux: fix the memory leak of language attribute
https://bugzilla.gnome.org/show_bug.cgi?id=728418
This commit is contained in:
parent
cff050884c
commit
8ac30d4c26
1 changed files with 1 additions and 0 deletions
|
@ -809,6 +809,7 @@ gst_matroska_mux_handle_sink_event (GstCollectPads * pads,
|
|||
lang_code = gst_tag_get_language_code_iso_639_2B (lang);
|
||||
if (lang_code) {
|
||||
GST_INFO_OBJECT (pad, "Setting language to '%s'", lang_code);
|
||||
g_free (context->language);
|
||||
context->language = g_strdup (lang_code);
|
||||
} else {
|
||||
GST_WARNING_OBJECT (pad, "Did not get language code for '%s'", lang);
|
||||
|
|
Loading…
Reference in a new issue