adaptivedemux2: Don't leak track tags

The tags are fully transfered to this function

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3883>
This commit is contained in:
Edward Hervey 2023-01-25 07:46:22 +01:00 committed by GStreamer Marge Bot
parent 6f6c0cbbaf
commit 123030feac

View file

@ -927,8 +927,8 @@ gst_adaptive_demux_track_new (GstAdaptiveDemux * demux,
track->generic_caps = caps;
track->stream_object = gst_stream_new (track->stream_id, caps, type, flags);
if (tags) {
track->tags = gst_tag_list_ref (tags);
gst_stream_set_tags (track->stream_object, tags);
track->tags = tags;
}
track->selected = FALSE;