From c3286501b4123ba0886558ebc4900c2eb49d8357 Mon Sep 17 00:00:00 2001 From: Stefan Kost Date: Thu, 12 Mar 2009 12:20:25 +0200 Subject: [PATCH] taglists: apply fix for replace all also to gst_tag_list_add_valist_values. Fixes #574241 --- gst/gsttaglist.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gst/gsttaglist.c b/gst/gsttaglist.c index 37161d15e4..fba364bc58 100644 --- a/gst/gsttaglist.c +++ b/gst/gsttaglist.c @@ -877,6 +877,10 @@ gst_tag_list_add_valist_values (GstTagList * list, GstTagMergeMode mode, g_return_if_fail (GST_TAG_MODE_IS_VALID (mode)); g_return_if_fail (tag != NULL); + if (mode == GST_TAG_MERGE_REPLACE_ALL) { + gst_structure_remove_all_fields (list); + } + while (tag != NULL) { quark = g_quark_from_string (tag); info = gst_tag_lookup (quark);