summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVineeth TM <vineeth.tm@samsung.com>2015-08-06 10:05:53 +0900
committerThiago Santos <thiagoss@osg.samsung.com>2015-08-06 01:59:56 -0300
commitecb6099b44a1a8e3a1336d746e53db148f15ffeb (patch)
treec0dfa601c9b17215dcc8fae160c6dbbebbf958e7
parent5e7d0a828552dcc6f6ddf2bf08cf318a7cbd1d8d (diff)
rmdemux: fix assertion error when freeing old tags.
Check if old_tags is present before calling gst_tag_list_unref https://bugzilla.gnome.org/show_bug.cgi?id=753301
-rw-r--r--gst/realmedia/rmdemux.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gst/realmedia/rmdemux.c b/gst/realmedia/rmdemux.c
index 3681bef3..e670f984 100644
--- a/gst/realmedia/rmdemux.c
+++ b/gst/realmedia/rmdemux.c
@@ -1938,7 +1938,8 @@ gst_rmdemux_parse_cont (GstRMDemux * rmdemux, const guint8 * data, int length)
gst_tag_list_merge (old_tags, tags, GST_TAG_MERGE_APPEND);
gst_tag_list_unref (tags);
- gst_tag_list_unref (old_tags);
+ if (old_tags)
+ gst_tag_list_unref (old_tags);
gst_tag_list_set_scope (rmdemux->pending_tags, GST_TAG_SCOPE_GLOBAL);
}