From 65e8074829b91b24519b0d381936ab7cf8172628 Mon Sep 17 00:00:00 2001 From: Damiano Galassi Date: Thu, 23 Oct 2014 18:14:43 +0200 Subject: [PATCH] Added an error message if we try to save on a folder without the write permission. --- MP42/MP42File.m | 3 +++ 1 file changed, 3 insertions(+) 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); } }