summaryrefslogtreecommitdiffstats
path: root/macosx
diff options
context:
space:
mode:
authordynaflash <[email protected]>2008-02-18 15:59:12 +0000
committerdynaflash <[email protected]>2008-02-18 15:59:12 +0000
commit0d4f7d9656760d2eeba31ea46ac48d93a1a458e5 (patch)
treece5407be67ca6769162e3eb865b8fdd00ca6c641 /macosx
parent766b984206903a235a3c7956ce41016202cc6554 (diff)
MacGui: Make sure that mp4's using ac3 passthru whether by itself or in combination with aac use the .m4v file extension as otherwise quicktime will not play it at all.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1286 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx')
-rw-r--r--macosx/Controller.mm9
1 files changed, 9 insertions, 0 deletions
diff --git a/macosx/Controller.mm b/macosx/Controller.mm
index 1492a02ff..7535b4530 100644
--- a/macosx/Controller.mm
+++ b/macosx/Controller.mm
@@ -2357,6 +2357,15 @@ static NSString * ChooseSourceIdentifier = @"Choose Source It
[fVidEncoderPopUp addItemWithTitle: @"x264"];
[fVidEncoderPopUp selectItemAtIndex: 0];
[fAdvancedOptions setHidden:NO];
+ /* if MP4 format and [fDstCodecsPopUp indexOfSelectedItem] > 1 we know that the audio is going to be
+ * either aac + ac3 passthru, or just ac3 passthru so we need to make sure the output file extension is m4v
+ * otherwise Quicktime will not play it at all */
+ if ([fDstFormatPopUp indexOfSelectedItem] == 0 && [fDstCodecsPopUp indexOfSelectedItem] > 1)
+ {
+ NSString *newpath = [[[fDstFile2Field stringValue] stringByDeletingPathExtension] stringByAppendingPathExtension: @"m4v"];
+ [fDstFile2Field setStringValue: [NSString stringWithFormat:
+ @"%@", newpath]];
+ }
}
else if( ( FormatSettings[format][codecs] & HB_VCODEC_FFMPEG ) )