mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-22 01:31:03 +00:00
avdemux: Set correct taglist scope for global vs. stream tags
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7366>
This commit is contained in:
parent
76a037d29a
commit
b86bf6d9c0
1 changed files with 3 additions and 1 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue