Fix the “Same as source” destination for mpeg4 files with different file extensions and added a file type options.
This commit is contained in:
1 parent
109a71d3b4
commit
9ef99ac79f
3 files changed
+52
-21
No files matched your search
@@ -253,10 +253,15 @@ static void *SBQueueContex = &SBQueueContex;
|
||||
[item addAction:[[[SBQueueSetAction alloc] initWithSet:[self.options objectForKey:SBQueueSet]] autorelease]];
|
||||
}
|
||||
|
||||
id type;
|
||||
[url getResourceValue:&type forKey:NSURLTypeIdentifierKey error:NULL];
|
||||
|
||||
NSURL *destination = [self.options objectForKey:SBQueueDestination];
|
||||
if (destination) {
|
||||
destination = [[[destination URLByAppendingPathComponent:[url lastPathComponent]] URLByDeletingPathExtension]
|
||||
URLByAppendingPathExtension:[self.options objectForKey:SBQueueFileType]];
|
||||
} else if (UTTypeConformsTo((__bridge CFStringRef)type, (__bridge CFStringRef)@"public.mpeg-4")) {
|
||||
destination = [[url copy] autorelease];
|
||||
} else {
|
||||
destination = [[url URLByDeletingPathExtension]
|
||||
URLByAppendingPathExtension:[self.options objectForKey:SBQueueFileType]];
|
||||
|
||||
Reference in new issue
Block a user