search for: field_value_length

Displaying 1 result from an estimated 1 matches for "field_value_length".

2014 Sep 14
1
Patch to stop writing empty vorbiscomment fields
...c index ed9f710..0e99267 100644 --- a/src/flac/vorbiscomment.c +++ b/src/flac/vorbiscomment.c @@ -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; }