mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 20:59:44 +00:00
rmdemux: fix taglist leak
merge doesn't take ownership, so must unref the old tags if we do merge.
This commit is contained in:
parent
868a885040
commit
2be1874927
1 changed files with 5 additions and 1 deletions
|
@ -1930,11 +1930,15 @@ gst_rmdemux_parse_cont (GstRMDemux * rmdemux, const guint8 * data, int length)
|
|||
tags = gst_rm_utils_read_tags (data, length, gst_rm_utils_read_string16);
|
||||
|
||||
if (tags) {
|
||||
GstTagList *old_tags = rmdemux->pending_tags;
|
||||
|
||||
GST_LOG_OBJECT (rmdemux, "tags: %" GST_PTR_FORMAT, tags);
|
||||
|
||||
rmdemux->pending_tags =
|
||||
gst_tag_list_merge (rmdemux->pending_tags, tags, GST_TAG_MERGE_APPEND);
|
||||
gst_tag_list_merge (old_tags, tags, GST_TAG_MERGE_APPEND);
|
||||
|
||||
gst_tag_list_unref (tags);
|
||||
gst_tag_list_unref (old_tags);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue