mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 03:35:21 +00:00
rmdemux: fix wrong unref when there are no tags
Tags should be appended to pending tags and unref'ed only if tags are present. Else there is no need to append. https://bugzilla.gnome.org/show_bug.cgi?id=752404
This commit is contained in:
parent
42dbce6d57
commit
868a885040
1 changed files with 6 additions and 4 deletions
|
@ -1929,11 +1929,13 @@ gst_rmdemux_parse_cont (GstRMDemux * rmdemux, const guint8 * data, int length)
|
|||
|
||||
tags = gst_rm_utils_read_tags (data, length, gst_rm_utils_read_string16);
|
||||
|
||||
GST_LOG_OBJECT (rmdemux, "tags: %" GST_PTR_FORMAT, tags);
|
||||
if (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_unref (tags);
|
||||
rmdemux->pending_tags =
|
||||
gst_tag_list_merge (rmdemux->pending_tags, tags, GST_TAG_MERGE_APPEND);
|
||||
gst_tag_list_unref (tags);
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in a new issue