mirror of
https://github.com/claunia/flac.git
synced 2025-12-16 18:54:26 +00:00
vorbiscomment.c : Do not write empty vorbiscomment fields.
That is, only write vorbis comment fields if they are non-empty. Patch-from: Janne Hyvärinen <cse@sci.fi>
This commit is contained in:
@@ -243,7 +243,7 @@ FLAC__bool flac__vorbiscomment_add(FLAC__StreamMetadata *block, const char *comm
|
||||
return false;
|
||||
}
|
||||
|
||||
if(!set_vc_field(block, &parsed, &dummy, raw, violation)) {
|
||||
if(parsed.field_value_length > 0 && !set_vc_field(block, &parsed, &dummy, raw, violation)) {
|
||||
free_field(&parsed);
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user