mirror of
https://github.com/taglib/taglib.git
synced 2025-11-17 07:02:53 -05:00
Merge pull request #654 from TsudaKageyu/xiph-setcomment
Fix XiphComment::setComment() for the case that a Vorbis comment has …
This commit is contained in:
@ -137,7 +137,14 @@ void Ogg::XiphComment::setAlbum(const String &s)
|
||||
|
||||
void Ogg::XiphComment::setComment(const String &s)
|
||||
{
|
||||
addField(d->commentField.isEmpty() ? "DESCRIPTION" : d->commentField, s);
|
||||
if(d->commentField.isEmpty()) {
|
||||
if(!d->fieldListMap["DESCRIPTION"].isEmpty())
|
||||
d->commentField = "DESCRIPTION";
|
||||
else
|
||||
d->commentField = "COMMENT";
|
||||
}
|
||||
|
||||
addField(d->commentField, s);
|
||||
}
|
||||
|
||||
void Ogg::XiphComment::setGenre(const String &s)
|
||||
|
||||
Reference in New Issue
Block a user