mirror of
https://github.com/taglib/taglib.git
synced 2025-06-04 01:28:21 -04:00
Don't include empty strings in the text field list. This is a slight deviation
from the standard, but major editors (i.e. iTunes) mess up ID3v2 text frames with null termination (which technically indicates a field with content, plus an empty field). git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@689739 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
This commit is contained in:
parent
962756461c
commit
cd0f0b0086
@ -126,8 +126,10 @@ void TextIdentificationFrame::parseFields(const ByteVector &data)
|
||||
// type is the same specified for this frame
|
||||
|
||||
for(ByteVectorList::Iterator it = l.begin(); it != l.end(); it++) {
|
||||
String s(*it, d->textEncoding);
|
||||
d->fieldList.append(s);
|
||||
if(!(*it).isEmpty()) {
|
||||
String s(*it, d->textEncoding);
|
||||
d->fieldList.append(s);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user