Fixed a crash.

This commit is contained in:
Damiano Galassi committed 2014-03-22 08:40:33 +01:00
1 parent 196dc6effc
commit e87ca990e5
1 file changed
+4 -2
+4 -2
View File
@@ -594,8 +594,10 @@ static void logCallback(MP4LogLevel loglevel, const char* fmt, va_list ap)
{
BOOL success = YES;
if (!url && outError) {
*outError = MP42Error(@"Invalid path.", @"The destination path cannot be empty.", 100);
if (!url) {
if (outError) {
*outError = MP42Error(@"Invalid path.", @"The destination path cannot be empty.", 100);
}
return NO;
}