diff options
author | dynaflash <[email protected]> | 2010-04-06 15:45:40 +0000 |
---|---|---|
committer | dynaflash <[email protected]> | 2010-04-06 15:45:40 +0000 |
commit | 2c4457fa5666428c43f1d82acadc6b5095f8fab7 (patch) | |
tree | 13907f2fb91bc007ce5a7fb21d109c1d40b2118e /macosx/Controller.m | |
parent | d7dc1c11f93fe701893899471a5d729869d8f5c6 (diff) |
MacGui: Fix issue when selecting a preset with multiple audio tracks (ie. AppleTV preset) any track after the first track used the first source track which would cause track mismatches. Now if the first track is set to use source track 3 for instance, the seond track will use source track 3 as well.
- Fixes issue where the AppleTv Preset would use a different source track for its AC3 track than the first aac track on some multiple track sources.
- Addresses the bug explained here http://forum.handbrake.fr/viewtopic.php?f=12&t=15854
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3202 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/Controller.m')
-rw-r--r-- | macosx/Controller.m | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/macosx/Controller.m b/macosx/Controller.m index cc9978bb3..a25b273a9 100644 --- a/macosx/Controller.m +++ b/macosx/Controller.m @@ -6728,6 +6728,7 @@ return YES; { /* pointer to this track's mixdown, codec, sample rate and bitrate NSPopUpButton's */ + NSPopUpButton * trackLangPreviousPopUp = nil; NSPopUpButton * trackLangPopUp = nil; NSPopUpButton * mixdownPopUp = nil; NSPopUpButton * audiocodecPopUp = nil; @@ -6754,6 +6755,7 @@ return YES; } if( i == 2 ) { + trackLangPreviousPopUp = fAudLang1PopUp; trackLangPopUp = fAudLang2PopUp; mixdownPopUp = fAudTrack2MixPopUp; audiocodecPopUp = fAudTrack2CodecPopUp; @@ -6763,6 +6765,7 @@ return YES; } if( i == 3 ) { + trackLangPreviousPopUp = fAudLang2PopUp; trackLangPopUp = fAudLang3PopUp; mixdownPopUp = fAudTrack3MixPopUp; audiocodecPopUp = fAudTrack3CodecPopUp; @@ -6772,6 +6775,7 @@ return YES; } if( i == 4 ) { + trackLangPreviousPopUp = fAudLang3PopUp; trackLangPopUp = fAudLang4PopUp; mixdownPopUp = fAudTrack4MixPopUp; audiocodecPopUp = fAudTrack4CodecPopUp; @@ -6783,7 +6787,16 @@ return YES; if ([trackLangPopUp indexOfSelectedItem] == 0) { - [trackLangPopUp selectItemAtIndex: 1]; + if (i ==1) + { + [trackLangPopUp selectItemAtIndex: 1]; + } + else + { + /* if we are greater than track 1, select + * the same track as the previous track */ + [trackLangPopUp selectItemAtIndex: [trackLangPreviousPopUp indexOfSelectedItem]]; + } } [self audioTrackPopUpChanged: trackLangPopUp]; [audiocodecPopUp selectItemWithTitle:[tempObject objectForKey:@"AudioEncoder"]]; |