tag: id3v2: Make sure the ISO 639-X language code in ID3v2 COMM frames so we don...
authorTommi Myöhänen <ext-tommi.myohanen@nokia.com>
Wed, 9 Jan 2008 15:20:19 +0000 (15:20 +0000)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Sun, 14 Aug 2011 23:10:31 +0000 (00:10 +0100)
commit6d7fcfbcdea084a016e3945b6f8f6bef8fe478a2
treedb7f8bdb00297ce3fb2f76accdb5020b9dd6b89c
parentd4b43861a2288fbebf30d425d53f0844c1bf1344
tag: id3v2: Make sure the ISO 639-X language code in ID3v2 COMM frames so we don't end up with non-UT...

Original commit message from CVS:
Based on patch by: Tommi Myöhänen <ext-tommi.myohanen nokia com>
* gst-libs/gst/tag/id3v2frames.c: (parse_comment_frame):
Make sure the ISO 639-X language code in ID3v2 COMM frames
is actually valid UTF-8 (or rather: ASCII), so we don't end
up with non-UTF8 strings in tags if there's garbage in the
language field. Also make sure the language code is always
lower case. Fixes: #508291.
gst-libs/gst/tag/id3v2frames.c