GNOME Bugzilla – Bug 512578
gst_tag_setter_merge_tags can mess up with KEEP_ALL merge mode
Last modified: 2008-04-13 19:58:49 UTC
gst_tag_setter_merge_tags unconditionally copies over the given tag list if the tag setter's list was unset before. This is wrong for GST_TAG_MERGE_KEEP_ALL, which is essentially a no-op. Attaching test suite additions and fix.
Created attachment 103891 [details] [review] Add gst_tag_setter_merge_tags tests
Created attachment 103892 [details] [review] Fix gst_tag_setter_merge_tags with KEEP_ALL merge mode
Committed, thanks: 2008-04-13 Tim-Philipp Müller <tim at centricular dot net> Patch by: Rene Stadler <mail at renestadler de> * gst/gsttagsetter.c: (gst_tag_setter_merge_tags): Merging an empty list with another list in KEEP_ALL mode should yield an empty list as result and not the second list (#512578). * tests/check/gst/gsttagsetter.c: Add unit test for tag merge modes and the aforementioned bug.