Merge pull request #96 from nightingale-media-player/master

Make textual lyric frames use UTF8
This commit is contained in:
Stephen F. Booth 2013-01-20 07:56:30 -08:00
commit 6029352c09

View File

@ -134,7 +134,7 @@ Frame *Frame::createTextualFrame(const String &key, const StringList &values) //
// now we check if it's one of the "special" cases:
// -LYRICS: depending on the number of values, use USLT or TXXX (with description=LYRICS)
if((key == "LYRICS" || key.startsWith(lyricsPrefix)) && values.size() == 1){
UnsynchronizedLyricsFrame *frame = new UnsynchronizedLyricsFrame();
UnsynchronizedLyricsFrame *frame = new UnsynchronizedLyricsFrame(String::UTF8);
frame->setDescription(key == "LYRICS" ? key : key.substr(lyricsPrefix.size()));
frame->setText(values.front());
return frame;