tsdemux: Don't leak a taglist if a taglist has already been created
https://bugzilla.gnome.org/show_bug.cgi?id=776244
This commit is contained in:
parent
0489f4eac5
commit
b5791efcc0
@ -1243,7 +1243,9 @@ mpegts_base_get_tags_from_eit (MpegTSBase * base, GstMpegtsSection * section)
|
|||||||
|
|
||||||
if (gst_mpegts_descriptor_parse_dvb_short_event (desc, NULL, &name,
|
if (gst_mpegts_descriptor_parse_dvb_short_event (desc, NULL, &name,
|
||||||
&text)) {
|
&text)) {
|
||||||
|
if (!program->tags)
|
||||||
program->tags = gst_tag_list_new_empty ();
|
program->tags = gst_tag_list_new_empty ();
|
||||||
|
|
||||||
if (name) {
|
if (name) {
|
||||||
gst_tag_list_add (program->tags, GST_TAG_MERGE_APPEND,
|
gst_tag_list_add (program->tags, GST_TAG_MERGE_APPEND,
|
||||||
GST_TAG_TITLE, name, NULL);
|
GST_TAG_TITLE, name, NULL);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user