Correctly write the metadata offset in absence of ID3v2 tag

This commit is contained in:
Stephen F. Booth 2013-11-29 13:36:57 -05:00
parent dad73ebfc5
commit 0c2e21024f

View File

@ -127,9 +127,9 @@ bool DSF::File::save()
d->fileSize = newFileSize;
}
// Update the metadata offset
// Update the metadata offset to 0 since there is no longer a tag
if(d->metadataOffset != newMetadataOffset) {
insert(ByteVector::fromUInt64LE(newMetadataOffset), 20, 8);
insert(ByteVector::fromUInt64LE(0ULL), 20, 8);
d->metadataOffset = newMetadataOffset;
}