mxfdemux: Set stream tags to NULL after unreffing
authorSebastian Dröge <sebastian@centricular.com>
Fri, 20 Jan 2017 05:51:09 +0000 (07:51 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Wed, 25 Jan 2017 12:23:32 +0000 (14:23 +0200)
Otherwise we might try to unref them a second time a little bit later.

https://bugzilla.gnome.org/show_bug.cgi?id=777503

gst/mxf/mxfdemux.c

index a380f6dd9bb7c48e86f2a720c4c5f6dfce978c65..54ceec1df08584cc84d256029edcd5d095066bc0 100644 (file)
@@ -835,6 +835,7 @@ gst_mxf_demux_update_essence_tracks (GstMXFDemux * demux)
         etrack->mapping_data = NULL;
         if (etrack->tags)
           gst_tag_list_unref (etrack->tags);
+        etrack->tags = NULL;
         goto next;
       } else if (!caps) {
         GST_WARNING_OBJECT (demux, "Couldn't create updated caps for stream");