asfdemux: don't try to free a NULL taglist

This commit is contained in:
Tim-Philipp Müller 2009-06-23 16:45:00 +01:00
parent 6ec0b61980
commit 16a09febbd

View file

@ -2141,7 +2141,8 @@ gst_asf_demux_add_global_tags (GstASFDemux * demux, GstTagList * taglist)
}
t = gst_tag_list_merge (demux->taglist, taglist, GST_TAG_MERGE_APPEND);
gst_tag_list_free (demux->taglist);
if (demux->taglist)
gst_tag_list_free (demux->taglist);
gst_tag_list_free (taglist);
demux->taglist = t;
GST_LOG_OBJECT (demux, "global tags now: %" GST_PTR_FORMAT, demux->taglist);