No error when saving MP4 files
lalinsky at gmail.com
Fri Jul 9 15:18:25 CEST 2010
On Thu, Jun 24, 2010 at 4:58 PM, Manfred Schwind <lists at mani.de> wrote:
> I recently had a write protected AAC file, but taglib returned no error when saving the file after having modified some tags. (The save() method returned true.)
> I looked into the source and discovered the following:
> MP4::File::save() directly calls MP4::Tag::save() and returns its result.
> But MP4::Tag::save() ALWAYS returns true!
> Isn't this clearly a bug? I want to know if my file operation was successful.
> I can work around the write protected case by checking forehand if the file is writable, but this is really just a hack and does not cover all cases that can go wrong.
> Another idea would be to read the file again after the write operation and check if my changes are there.
> Any chances that this will be fixed?
I've added a check for read-only files, but not for any functional failures yet.
More information about the taglib-devel