discoverer: Don't ref NULL taglist

Fixes warning introduced in 064f7bbbfa

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1200>
This commit is contained in:
Edward Hervey 2021-10-20 09:37:40 +02:00 committed by Edward Hervey
parent b23148fa31
commit 879526b2e2

View file

@ -1313,7 +1313,8 @@ parse_stream_topology (GstDiscoverer * dc, const GstStructure * topology,
cont = (GstDiscovererContainerInfo *)
g_object_new (GST_TYPE_DISCOVERER_CONTAINER_INFO, NULL);
cont->parent.caps = caps;
cont->tags = gst_tag_list_ref (dc->priv->global_tags);
if (dc->priv->global_tags)
cont->tags = gst_tag_list_ref (dc->priv->global_tags);
res = (GstDiscovererStreamInfo *) cont;
for (i = 0; i < len; i++) {