Shortened a bit of the ID3v2 ReplayGain code
parent
a6608b57c4
commit
625ced97f3
|
@ -198,7 +198,7 @@ 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 static_cast<UserTextIdentificationFrame *>(*it)->toString().toFloat();
|
||||
return frame->toString().toFloat();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue