Commit 35468420 authored by Urs Fleisch's avatar Urs Fleisch
Browse files

Fixed bug: When ID3v2 text encoding is set to UTF16 and id3lib (ID3v2.3) is...

Fixed bug: When ID3v2 text encoding is set to UTF16 and id3lib (ID3v2.3) is used for MP3 files, after saving a file with changed ID3v1 tags, the changed ID3v1 fields are displayed incorrectly.
parent 9bee2815
......@@ -561,7 +561,8 @@ static bool setTextField(ID3_Tag* tag, ID3_FrameID id, const QString& text,
if (frame) {
ID3_Field* fld = frame->GetField(ID3FN_TEXT);
if (fld) {
ID3_TextEnc enc = Mp3File::getDefaultTextEncoding();
ID3_TextEnc enc = tag->HasV2Tag() ?
Mp3File::getDefaultTextEncoding() : ID3TE_ISO8859_1;
if (allowUnicode && enc == ID3TE_ISO8859_1) {
// check if information is lost if the string is not unicode
uint i, unicode_size = text.length();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment