mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-12 02:15:31 +00:00
avidemux: Fix taglist leak
gst_tag_list_insert() does not take ownership of the inserted taglist. https://bugzilla.gnome.org/show_bug.cgi?id=755138
This commit is contained in:
parent
c919548e2c
commit
dc74d744c3
1 changed files with 5 additions and 0 deletions
|
@ -3465,6 +3465,7 @@ gst_avi_demux_stream_header_push (GstAviDemux * avi)
|
|||
if (avi->globaltags) {
|
||||
gst_tag_list_insert (avi->globaltags, tags,
|
||||
GST_TAG_MERGE_REPLACE);
|
||||
gst_tag_list_unref (tags);
|
||||
} else {
|
||||
avi->globaltags = tags;
|
||||
}
|
||||
|
@ -4051,6 +4052,7 @@ gst_avi_demux_stream_header_pull (GstAviDemux * avi)
|
|||
if (avi->globaltags) {
|
||||
gst_tag_list_insert (avi->globaltags, tags,
|
||||
GST_TAG_MERGE_REPLACE);
|
||||
gst_tag_list_unref (tags);
|
||||
} else {
|
||||
avi->globaltags = tags;
|
||||
}
|
||||
|
@ -4067,6 +4069,7 @@ gst_avi_demux_stream_header_pull (GstAviDemux * avi)
|
|||
if (avi->globaltags) {
|
||||
gst_tag_list_insert (avi->globaltags, tags,
|
||||
GST_TAG_MERGE_REPLACE);
|
||||
gst_tag_list_unref (tags);
|
||||
} else {
|
||||
avi->globaltags = tags;
|
||||
}
|
||||
|
@ -4180,6 +4183,7 @@ gst_avi_demux_stream_header_pull (GstAviDemux * avi)
|
|||
if (avi->globaltags) {
|
||||
gst_tag_list_insert (avi->globaltags, tags,
|
||||
GST_TAG_MERGE_REPLACE);
|
||||
gst_tag_list_unref (tags);
|
||||
} else {
|
||||
avi->globaltags = tags;
|
||||
}
|
||||
|
@ -4214,6 +4218,7 @@ gst_avi_demux_stream_header_pull (GstAviDemux * avi)
|
|||
if (avi->globaltags) {
|
||||
gst_tag_list_insert (avi->globaltags, tags,
|
||||
GST_TAG_MERGE_REPLACE);
|
||||
gst_tag_list_unref (tags);
|
||||
} else {
|
||||
avi->globaltags = tags;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue