adaptivedemux2: Don't leak tags

If we got them from GstStream, we should unref them when done

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3443>
This commit is contained in:
Edward Hervey 2022-11-21 17:23:44 +01:00 committed by GStreamer Marge Bot
parent e36b1ae6ed
commit a742c3bf27

View file

@ -2427,6 +2427,8 @@ can_handle_collection (GstAdaptiveDemux2Stream * stream,
default:
break;
}
if (tags)
gst_tag_list_unref (tags);
}
/* Check that we either have at most 1 of each track type, or that