Check if outError pointer is not null before assigning a new value.

This commit is contained in:
Damiano Galassi committed 2014-10-15 09:51:47 +02:00
1 parent 97c1378a48
commit c7e9a124f3
1 file changed
+6 -3
+6 -3
View File
@@ -733,9 +733,12 @@ static void logCallback(MP4LogLevel loglevel, const char *fmt, va_list ap) {
if (fileImporter) {
track.muxer_helper->importer = fileImporter;
} else {
*outError = MP42Error(@"Missing sources.",
@"One or more sources files are missing.",
200);
if (outError) {
*outError = MP42Error(@"Missing sources.",
@"One or more sources files are missing.",
200);
}
noErr = NO;
break;
}