Commit 3e7d5bec authored by Urs Fleisch's avatar Urs Fleisch
Browse files

Fix bug for M4A with TagLib: Total was not correctly stored in Track/Disc Number.

parent 18ab38aa
......@@ -3193,8 +3193,8 @@ static TagLib::MP4::Item getMp4ItemForFrame(const Frame& frame, TagLib::String&
QString str1 = frame.getValue(), str2 = "0";
int slashPos = str1.indexOf('/');
if (slashPos != -1) {
str1.truncate(slashPos);
str2 = str1.mid(slashPos + 1);
str1.truncate(slashPos);
}
return TagLib::MP4::Item(str1.toInt(), str2.toInt());
}
......
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