mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 23:06:49 +00:00
decodebin3: fix tag list leak
https://bugzilla.gnome.org/show_bug.cgi?id=769270
This commit is contained in:
parent
0b77ede079
commit
acbaa83450
1 changed files with 3 additions and 1 deletions
|
@ -1159,7 +1159,7 @@ handle_stream_collection (GstDecodebin3 * dbin,
|
|||
GST_DEBUG (" %d streams", gst_stream_collection_get_size (collection));
|
||||
for (i = 0; i < gst_stream_collection_get_size (collection); i++) {
|
||||
GstStream *stream = gst_stream_collection_get_stream (collection, i);
|
||||
const GstTagList *taglist;
|
||||
GstTagList *taglist;
|
||||
GstCaps *caps;
|
||||
|
||||
GST_DEBUG (" Stream '%s'", gst_stream_get_stream_id (stream));
|
||||
|
@ -1170,6 +1170,8 @@ handle_stream_collection (GstDecodebin3 * dbin,
|
|||
GST_DEBUG (" tags : %" GST_PTR_FORMAT, taglist);
|
||||
caps = gst_stream_get_caps (stream);
|
||||
GST_DEBUG (" caps : %" GST_PTR_FORMAT, caps);
|
||||
if (taglist)
|
||||
gst_tag_list_unref (taglist);
|
||||
gst_caps_unref (caps);
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue