matroska-mux: Allowing multiple identical tags for per stream tags
Currently, the matroskamux hardcodes the merge mode for per stream tags to be GST_TAG_MERGE_REPLACE
. This will cause duplicate tags to be reduced down to the latest that arrived.
// gst/matroska/matroska-mux.c:851
if (gst_tag_list_get_scope (list) == GST_TAG_SCOPE_GLOBAL) {
gst_tag_setter_merge_tags (GST_TAG_SETTER (mux), list,
gst_tag_setter_get_tag_merge_mode (GST_TAG_SETTER (mux)));
} else {
gst_tag_list_insert (collect_pad->tags, list, GST_TAG_MERGE_REPLACE);
}
Seems (from what I can gather from the matroska specs) that multiple identical tags should indeed be supported by matroska, so I'm a little confused as to why the replace merge mode is used here. Is the fix here, that a different merge mode should be used, or should there be something to configure the merge mode?