Fixed some static analyizer warnings.

This commit is contained in:
Damiano Galassi committed 2016-01-27 13:30:00 +01:00
1 parent a7131d300c
commit 64163973f3
8 files changed
+25 -16

No files matched your search

+2 -2
View File
@@ -543,7 +543,7 @@ static void logCallback(MP4LogLevel loglevel, const char *fmt, va_list ap) {
#endif
if (tempURL) {
tempURL = [tempURL URLByAppendingPathComponent:[NSString stringWithFormat:@"%@.tmp", [self.URL lastPathComponent]]];
tempURL = [tempURL URLByAppendingPathComponent:[NSString stringWithFormat:@"%@.tmp", self.URL.lastPathComponent]];
}
return tempURL;
@@ -568,7 +568,7 @@ static void logCallback(MP4LogLevel loglevel, const char *fmt, va_list ap) {
// Loop to check the progress
while (!done) {
unsigned long long fileSize = [[[fileManager attributesOfItemAtPath:self.tempURL.path error:nil] valueForKey:NSFileSize] unsignedLongLongValue];
unsigned long long fileSize = [[[fileManager attributesOfItemAtPath:tempURL.path error:nil] valueForKey:NSFileSize] unsignedLongLongValue];
[self progressStatus:((double)fileSize / originalFileSize) * 100];
usleep(450000);
}