TagLib: Fix reading ReplayGain tags from ID3v2 tags
parent
b35d405e20
commit
6c910bdfbc
|
@ -252,7 +252,13 @@ float ID3v2::Tag::rg(const String &type) const
|
|||
for (FrameList::ConstIterator it = list.begin(); it != list.end(); ++it) {
|
||||
UserTextIdentificationFrame const* frame = static_cast<UserTextIdentificationFrame *>(*it);
|
||||
if (!frame->description().isNull() && frame->description() == type) {
|
||||
return frame->toString().toFloat();
|
||||
// Remove description
|
||||
StringList l = frame->fieldList();
|
||||
for(StringList::Iterator it = l.begin(); it != l.end(); ++it) {
|
||||
l.erase(it);
|
||||
break;
|
||||
}
|
||||
return l.toString().toFloat();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue