[gstreamer-bugs] [Bug 341774] Fails to read tags in file

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Mon May 15 02:50:40 PDT 2006


Do not reply to this via email (we are currently unable to handle email
responses and they get discarded).  You can add comments to this bug at
http://bugzilla.gnome.org/show_bug.cgi?id=341774
 GStreamer | gst-plugins-good | Ver: 0.10.3


Jan Schmidt changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |thaytan at mad.scientist.com




------- Comment #2 from Jan Schmidt  2006-05-15 09:50 UTC -------
This file does contain bad UTF. It has UTF strings that start with a UTF-16LE
BOM marker followed by a UTF-16BE BOM marker, and then contains data that is
actually UTF-16BE. 

I have no idea which tag writer wrote this, but it's busted.

Anyway, the patch I'm about to attach and commit reworks the string parsing a
little, and adds a workaround that strips all BOM markers, using the innermost
(last) one, and then to tries interpreting UTF16 strings in both endiannesses
if the indicated one isn't correct.

With this patch I get this from the file:

Metadata for v2/bug-341774.mp3:
            album: Such Blinding Stars For Starving Eyes
           artist: Cursive
     track number: 4
            title: The Dirt of the Vineard
             date: 1997-01-01
            genre: Indie


-- 
Configure bugmail: http://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.




More information about the Gstreamer-bugs mailing list