diff options
Diffstat (limited to 'macosx/HBUtilities.m')
-rw-r--r-- | macosx/HBUtilities.m | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/macosx/HBUtilities.m b/macosx/HBUtilities.m index 68eec8dbe..e6f9c67ec 100644 --- a/macosx/HBUtilities.m +++ b/macosx/HBUtilities.m @@ -220,9 +220,10 @@ static NSDateFormatter *_releaseDateFormatter = nil; BOOL chapterMarkers = (job.chaptersEnabled) && (job.range.type != HBRangeTypeChapters || job.range.chapterStart < job.range.chapterStop); - if ([[[NSUserDefaults standardUserDefaults] objectForKey:@"DefaultMpegExtension"] isEqualToString:@".m4v"] || - ((YES == anyCodecAC3 || YES == chapterMarkers) && - [[[NSUserDefaults standardUserDefaults] objectForKey:@"DefaultMpegExtension"] isEqualToString:@"Auto"])) + NSString *defaultExtension = [[NSUserDefaults standardUserDefaults] objectForKey:@"DefaultMpegExtension"]; + + if ([defaultExtension isEqualToString:@".m4v"] || + ((YES == anyCodecAC3 || YES == chapterMarkers) && [defaultExtension isEqualToString:@"Auto"])) { extension = @"m4v"; } |