GNOME Bugzilla – Bug 337876
TagList does not retreive tags by key if 2 or more tags with the same name are present
Last modified: 2006-04-10 14:48:55 UTC
Please describe the problem: TagList.keys() returns only tags that have exactly ONE value. Tags with a same name that are specified 2 or more times are not listed in keys at all. Steps to reproduce: Typically this problem could happen with vorbis-style comments, i. e.: $ ogginfo starbase.ogg ... ARTIST=Tore Aune Fjellstad ARTIST=Espen Gätzschmann ... GENRE=Soundtrack GENRE=Media ... TagList.keys() would not list Genre or Artist tags at all. Actual results: Expected results: TagList.keys should contain proper keys for multi-value tags and return a list or tuple of expected values. Does this happen every time? Other information:
Created attachment 63074 [details] [review] Patch that fixes the problem Fortunately this problem is very easily fixed (see the patch) :)
2006-04-10 Edward Hervey <edward@fluendo.com> * gst/gsttaglist.override: (tag_foreach_func_list): Return tag value if present more than once (instead of exactly once). Fixes #337876