taglists: apply fix for replace all also to gst_tag_list_add_valist_values. Fixes #574241

This commit is contained in:
Stefan Kost 2009-03-12 12:20:25 +02:00
parent 5467c64379
commit c3286501b4

View file

@ -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);