diff --git a/MP42/MP42File.m b/MP42/MP42File.m index 99a05f7..066762f 100644 --- a/MP42/MP42File.m +++ b/MP42/MP42File.m @@ -691,6 +691,9 @@ static void logCallback(MP4LogLevel loglevel, const char *fmt, va_list ap) { [self stopWriting]; success = [self updateMP4FileWithAttributes:attributes error:outError]; + } else { + success = NO; + *outError = MP42Error(@"The file could not be saved.", @"You do not have sufficient permissions for this operation.", 101); } }