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
This commit is contained in:
Vineeth TM 2015-08-06 10:05:53 +09:00 committed by Thiago Santos
parent 5e7d0a8285
commit ecb6099b44

View file

@ -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);
}