Fixed the hdVideo tag in the queue and call cancel on the right object.
This commit is contained in:
1 parent
60d6c558a4
commit
5418ab3b57
3 files changed
+4
-3
No files matched your search
+1
-1
@@ -235,7 +235,7 @@ NSString *SBQueueCancelledNotification = @"SBQueueCancelledNotification";
|
||||
*/
|
||||
- (void)stop {
|
||||
self.cancelled = YES;
|
||||
[self.currentItem.mp4File cancel];
|
||||
[self.currentItem cancel];
|
||||
}
|
||||
|
||||
- (void)progressStatus:(CGFloat)progress {
|
||||
|
||||
@@ -145,12 +145,12 @@
|
||||
// Search for metadata
|
||||
MP42Metadata *metadata = [self searchMetadataForFile:item.URL];
|
||||
|
||||
for (MP42Track *track in item.mp4File.tracks)
|
||||
for (MP42Track *track in [item.mp4File tracksWithMediaType:MP42MediaTypeVideo])
|
||||
if ([track isKindOfClass:[MP42VideoTrack class]]) {
|
||||
int hdVideo = isHdVideo([((MP42VideoTrack *) track) trackWidth], [((MP42VideoTrack *) track) trackHeight]);
|
||||
|
||||
if (hdVideo)
|
||||
[item.mp4File.metadata setTag:@(hdVideo) forKey:@"HD Video"];
|
||||
[metadata setTag:@(hdVideo) forKey:@"HD Video"];
|
||||
}
|
||||
|
||||
[[item.mp4File metadata] mergeMetadata:metadata];
|
||||
|
||||
@@ -58,5 +58,6 @@ typedef enum SBQueueItemStatus : NSInteger {
|
||||
|
||||
- (BOOL)prepareItem:(NSError **)outError;
|
||||
- (BOOL)processItem:(BOOL)optimize error:(NSError **)outError;
|
||||
- (void)cancel;
|
||||
|
||||
@end
|
||||
Reference in new issue
Block a user