flvdemux: Fix unref assertion failure
authorSeungha Yang <sh.yang@lge.com>
Thu, 9 Jun 2016 00:30:48 +0000 (09:30 +0900)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Thu, 9 Jun 2016 02:01:11 +0000 (22:01 -0400)
Fix unref assertion failure

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

gst/flv/gstflvdemux.c

index d45902e..d2cf143 100644 (file)
@@ -402,8 +402,8 @@ gst_flv_demux_parse_metadata_item (GstFlvDemux * demux, GstByteReader * reader,
         } else {
           gst_tag_list_add (demux->taglist, GST_TAG_MERGE_REPLACE,
               GST_TAG_DATE_TIME, dt, NULL);
+          gst_date_time_unref (dt);
         }
-        gst_date_time_unref (dt);
       } else if (!strcmp (tag_name, "creator")) {
         gst_tag_list_add (demux->taglist, GST_TAG_MERGE_REPLACE,
             GST_TAG_ARTIST, s, NULL);