From b86bf6d9c05cbb3786e38867c80225e4cb4376c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Thu, 15 Aug 2024 11:52:23 +0300 Subject: [PATCH] avdemux: Set correct taglist scope for global vs. stream tags Part-of: --- subprojects/gst-libav/ext/libav/gstavdemux.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/subprojects/gst-libav/ext/libav/gstavdemux.c b/subprojects/gst-libav/ext/libav/gstavdemux.c index d55b89ee12..e756a09666 100644 --- a/subprojects/gst-libav/ext/libav/gstavdemux.c +++ b/subprojects/gst-libav/ext/libav/gstavdemux.c @@ -1044,6 +1044,7 @@ gst_ffmpegdemux_get_stream (GstFFMpegDemux * demux, AVStream * avstream) if (stream->tags == NULL) stream->tags = gst_tag_list_new_empty (); + gst_tag_list_set_scope (stream->tags, GST_TAG_SCOPE_STREAM); gst_tag_list_add (stream->tags, GST_TAG_MERGE_REPLACE, (ctx->codec_type == AVMEDIA_TYPE_VIDEO) ? GST_TAG_VIDEO_CODEC : GST_TAG_AUDIO_CODEC, codec, NULL); @@ -1332,7 +1333,8 @@ gst_ffmpegdemux_open (GstFFMpegDemux * demux) /* grab the global tags */ tags = gst_ffmpeg_metadata_to_tag_list (demux->context->metadata); if (tags) { - GST_INFO_OBJECT (demux, "global tags: %" GST_PTR_FORMAT, tags); + gst_tag_list_set_scope (demux->tags, GST_TAG_SCOPE_GLOBAL); + GST_INFO_OBJECT (demux, "global tags: %" GST_PTR_FORMAT, demux->tags); } /* now handle the stream tags */