summaryrefslogtreecommitdiffstats
path: root/macosx/HBPreviewGenerator.m
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2019-02-14 14:24:39 +0100
committerDamiano Galassi <[email protected]>2019-02-14 14:24:39 +0100
commitd79e33831e4713493e74a9267dc2bb5fe260685a (patch)
treef530236f416d543469f5cb635789f74dd7c44e06 /macosx/HBPreviewGenerator.m
parent54140f90ecb0e9e2ccb312bde22e64133518ed9b (diff)
MacGui: fix documentation link, some property annotations.
Diffstat (limited to 'macosx/HBPreviewGenerator.m')
-rw-r--r--macosx/HBPreviewGenerator.m16
1 files changed, 2 insertions, 14 deletions
diff --git a/macosx/HBPreviewGenerator.m b/macosx/HBPreviewGenerator.m
index dde0ccd32..ea81aeac1 100644
--- a/macosx/HBPreviewGenerator.m
+++ b/macosx/HBPreviewGenerator.m
@@ -244,21 +244,9 @@
return NO;
}
- NSURL *destURL = nil;
// Generate the file url and directories.
- if (self.job.container & 0x030000 /*HB_MUX_MASK_MP4*/)
- {
- // we use .m4v for our mp4 files so that ac3 and chapters in mp4 will play properly.
- destURL = [HBPreviewGenerator generateFileURLForType:@"m4v"];
- }
- else if (self.job.container & 0x300000 /*HB_MUX_MASK_MKV*/)
- {
- destURL = [HBPreviewGenerator generateFileURLForType:@"mkv"];
- }
- else if (self.job.container & 0x400000 /*HB_MUX_MASK_WEBM*/)
- {
- destURL = [HBPreviewGenerator generateFileURLForType:@"webm"];
- }
+ NSString *extension = [HBUtilities automaticExtForJob:self.job];
+ NSURL *destURL = [HBPreviewGenerator generateFileURLForType:extension];
// return if we couldn't get the fileURL.
if (!destURL)