Fixed chapters preview for file sent to queue.

This commit is contained in:
Damiano Galassi committed 2014-12-04 11:23:29 +01:00
1 parent 90853892d2
commit ea6b9b422d
2 files changed
+9 -1

No files matched your search

+1 -1
View File
@@ -636,7 +636,7 @@ objectValueForTableColumn:(NSTableColumn *)tableColumn
[attributes setObject:@YES forKey:MP42GenerateChaptersPreviewTrack];
}
SBQueueItem *item = [SBQueueItem itemWithMP4:self.mp4 url:[panel URL] attributes:attributes];
SBQueueItem *item = [SBQueueItem itemWithMP4:self.mp4 url:panel.URL attributes:attributes];
[queue addItem:item];
[attributes release];
+8
View File
@@ -83,6 +83,14 @@
_fileURL = [[NSURL fileURLWithPath:[MP4.URL path]] retain];
_destURL = [[NSURL fileURLWithPath:[MP4.URL path]] retain];
NSMutableDictionary *attributes = [NSMutableDictionary dictionary];
if ([[[NSUserDefaults standardUserDefaults] valueForKey:@"chaptersPreviewTrack"] boolValue]) {
[attributes setObject:@YES forKey:MP42GenerateChaptersPreviewTrack];
}
_attributes = [attributes copy];
}
return self;