Fix progress reporting in queue

This commit is contained in:
Damiano Galassi committed 2015-09-13 08:03:39 +02:00
1 parent c492c35a1c
commit edea09a71c
1 file changed
+3 -3
+3 -3
View File
@@ -261,7 +261,7 @@
for (id<SBQueueActionProtocol> action in self.actions) { for (id<SBQueueActionProtocol> action in self.actions) {
self.localizedWorkingDescription = action.localizedDescription; self.localizedWorkingDescription = action.localizedDescription;
[self.delegate progressStatus:0]; [self progressStatus:0];
[action runAction:self]; [action runAction:self];
} }
@@ -286,7 +286,7 @@
if (!noErr) { goto bail; } if (!noErr) { goto bail; }
self.mp4File.progressHandler = ^(double progress){ self.mp4File.progressHandler = ^(double progress){
[self.delegate progressStatus:progress]; [self progressStatus:progress];
}; };
// Check if there is enough space on the destination disk // Check if there is enough space on the destination disk
@@ -363,7 +363,7 @@ bail:
[self.mp4File cancel]; [self.mp4File cancel];
} }
- (void)progressStatus:(CGFloat)progress { - (void)progressStatus:(double)progress {
[self.delegate progressStatus:progress]; [self.delegate progressStatus:progress];
} }