Never override UTF-8 strings from TagLib.

This commit is contained in:
John Maguire 2010-06-03 15:22:30 +00:00
parent f33604580c
commit 2e9dc6c570
1 changed files with 1 additions and 1 deletions

View File

@ -305,7 +305,7 @@ void Song::Init(const QString& title, const QString& artist, const QString& albu
}
QString Song::Decode(const TagLib::String& tag, const QTextCodec* codec) {
if (codec) {
if (codec && tag.isLatin1()) { // Never override UTF-8.
const std::string fixed = QString::fromUtf8(tag.toCString(true)).toStdString();
return codec->toUnicode(fixed.c_str()).trimmed();
} else {