Fixed chapters preview for file sent to queue.
This commit is contained in:
1 parent
90853892d2
commit
ea6b9b422d
2 files changed
+9
-1
No files matched your search
@@ -636,7 +636,7 @@ objectValueForTableColumn:(NSTableColumn *)tableColumn
|
|||||||
[attributes setObject:@YES forKey:MP42GenerateChaptersPreviewTrack];
|
[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];
|
[queue addItem:item];
|
||||||
|
|
||||||
[attributes release];
|
[attributes release];
|
||||||
|
|||||||
@@ -83,6 +83,14 @@
|
|||||||
|
|
||||||
_fileURL = [[NSURL fileURLWithPath:[MP4.URL path]] retain];
|
_fileURL = [[NSURL fileURLWithPath:[MP4.URL path]] retain];
|
||||||
_destURL = [[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;
|
return self;
|
||||||
|
|||||||
Reference in new issue
Block a user