GNOME Bugzilla – Bug 624113
[tags] wrong behaviour in merge function for strings
Last modified: 2010-07-11 18:07:55 UTC
Created attachment 165688 [details] [review] Fix in gst_tag_merge_strings_with_comma After creating a test ogg file and inserting multiple artist fields in it, I ran a program written by me that extracts the metadata from a file via GStreamer (using gst_tag_list_get_string for the string fields), and got the following oddity: $ vorbiscomment -w -t "ARTIST=foo" -t "ARTIST=bar" -t "ARTIST=baz" -t "ARTIST=qux" -t "ARTIST=quux" test.ogg $ ./metadata test.ogg artist: foo, bar, bar, bar, bar i.e. after the second occurrence of the artist tag, the second field value is always used. The solution is very simple (just one character in gst/gsttaglist.c) and the patch is attached.
Oops, thanks for the patch. commit c082281d280d375d19d5e8a9bd3bc71a9c6c23cb Author: Tim-Philipp Müller <tim.muller@collabora.co.uk> Date: Sun Jul 11 19:00:54 2010 +0100 checks: add unit test for recent taglist merge_strings_with_comma fix See #624113. commit e86cfe1a19ce97417b7364b02f95d84f8340178f Author: Eduardo Dobay <edudobay@gmail.com> Date: Sun Jul 11 18:59:53 2010 +0100 taglist: fix merge_strings_with_comma() for more than two strings Fixes #624113.