mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 11:41:09 +00:00
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:
parent
b23148fa31
commit
879526b2e2
1 changed files with 2 additions and 1 deletions
|
@ -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++) {
|
||||
|
|
Loading…
Reference in a new issue