qtdemux: fix tag list leak on unknown stream type

This commit is contained in:
Vincent Penquerc'h 2015-04-16 12:23:38 +01:00
parent 2e3f3375ca
commit 765faa306a

View file

@ -6391,10 +6391,13 @@ gst_qtdemux_add_stream (GstQTDemux * qtdemux,
if (stream->pending_tags) if (stream->pending_tags)
gst_tag_list_unref (stream->pending_tags); gst_tag_list_unref (stream->pending_tags);
stream->pending_tags = list; stream->pending_tags = list;
list = NULL;
/* global tags go on each pad anyway */ /* global tags go on each pad anyway */
stream->send_global_tags = TRUE; stream->send_global_tags = TRUE;
} }
done: done:
if (list)
gst_tag_list_unref (list);
return TRUE; return TRUE;
} }