GNOME Bugzilla – Bug 341281
[id3demux] 'genre' is not valid UTF-8
Last modified: 2006-08-07 11:07:23 UTC
Another issue pointed by https://launchpad.net/distros/ubuntu/+source/rhythmbox/+bug/43755 "Starting program: /usr/bin/gst-launch-0.10 -t filesrc location=music.mp3 --gst-fatal-warnings \! decodebin \! fakesink (no debugging symbols found) [Thread debugging using libthread_db enabled] [New Thread -1212807488 (LWP 7302)] Setting pipeline to PAUSED ... GStreamer-WARNING **: Trying to set string field 'genre' on structure, but string is not valid UTF-8. Please file a bug. aborting... Program received signal SIGABRT, Aborted.
+ Trace 68145
Thread NaN (LWP 7302)
Example: http://pkg-gnome.alioth.debian.org/bugzilla/341281.mp3
This bug is caused by the same issue as bug #340979 - the first and last byte (character) of the string were inadvertantly stripped off. In this case this first byte is probably 'half' a UTF-8 character, so that leaves the string to be invalid. Should have been fixed by this commit as well: 2006-05-10 Jan Schmidt <thaytan@mad.scientist.com> * gst/id3demux/id3v2frames.c: (id3v2_genre_fields_to_taglist): Fix parsing of numeric genre strings some more, by ensuring that we only try and parse strings that a) Start with '(' and b) Consist only of digits. Also, when finding an escaping '((' sequence, bust it back to '(' by swallowing the first parenthesis (the content is probably not exactly what's expected, but that's the way it was encoded) *** This bug has been marked as a duplicate of 340979 ***
the fix works fine, I've backported it to the Ubuntu package