mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
qtdemux: fix tag list leak on unknown stream type
This commit is contained in:
parent
2e3f3375ca
commit
765faa306a
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue