summaryrefslogtreecommitdiffstats
path: root/macosx
diff options
context:
space:
mode:
authordynaflash <[email protected]>2008-04-25 14:04:46 +0000
committerdynaflash <[email protected]>2008-04-25 14:04:46 +0000
commit32a119802fe175b3cd60729634ad3594badebe40 (patch)
treef838ff159733ca478c07cead84a648bcca77b8a7 /macosx
parentb0efad118331a53c6928bba4e0ba5a855d2e3c28 (diff)
MacGui: Audio Tab - Make sure that selecting a subsequent audio track does not re-enable the sample rate, bitrate, and drc settings on a previously selected AC3 Passthru track.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1440 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx')
-rw-r--r--macosx/Controller.mm28
1 files changed, 28 insertions, 0 deletions
diff --git a/macosx/Controller.mm b/macosx/Controller.mm
index 11cb25468..f953f9c00 100644
--- a/macosx/Controller.mm
+++ b/macosx/Controller.mm
@@ -2879,6 +2879,13 @@ the user is using "Custom" settings by determining the sender*/
[fAudTrack1DrcSlider setFloatValue: 1.00];
[self audioDRCSliderChanged: fAudTrack1DrcSlider];
}
+ else if ([[fAudTrack1MixPopUp selectedItem] tag] == HB_ACODEC_AC3)
+ {
+ [fAudTrack1RatePopUp setEnabled: NO];
+ [fAudTrack1BitratePopUp setEnabled: NO];
+ [fAudTrack1DrcSlider setEnabled: NO];
+ [fAudTrack1DrcField setEnabled: NO];
+ }
/* enable/disable the mixdown text and popupbutton for audio track 2 */
[fAudTrack2CodecPopUp setEnabled: ([fAudLang2PopUp indexOfSelectedItem] == 0) ? NO : YES];
@@ -2896,6 +2903,13 @@ the user is using "Custom" settings by determining the sender*/
[fAudTrack2DrcSlider setFloatValue: 1.00];
[self audioDRCSliderChanged: fAudTrack2DrcSlider];
}
+ else if ([[fAudTrack2MixPopUp selectedItem] tag] == HB_ACODEC_AC3)
+ {
+ [fAudTrack2RatePopUp setEnabled: NO];
+ [fAudTrack2BitratePopUp setEnabled: NO];
+ [fAudTrack2DrcSlider setEnabled: NO];
+ [fAudTrack2DrcField setEnabled: NO];
+ }
/* enable/disable the mixdown text and popupbutton for audio track 3 */
[fAudTrack3CodecPopUp setEnabled: ([fAudLang3PopUp indexOfSelectedItem] == 0) ? NO : YES];
@@ -2913,6 +2927,13 @@ the user is using "Custom" settings by determining the sender*/
[fAudTrack3DrcSlider setFloatValue: 1.00];
[self audioDRCSliderChanged: fAudTrack3DrcSlider];
}
+ else if ([[fAudTrack3MixPopUp selectedItem] tag] == HB_ACODEC_AC3)
+ {
+ [fAudTrack3RatePopUp setEnabled: NO];
+ [fAudTrack3BitratePopUp setEnabled: NO];
+ [fAudTrack3DrcSlider setEnabled: NO];
+ [fAudTrack3DrcField setEnabled: NO];
+ }
/* enable/disable the mixdown text and popupbutton for audio track 4 */
[fAudTrack4CodecPopUp setEnabled: ([fAudLang4PopUp indexOfSelectedItem] == 0) ? NO : YES];
@@ -2930,6 +2951,13 @@ the user is using "Custom" settings by determining the sender*/
[fAudTrack4DrcSlider setFloatValue: 1.00];
[self audioDRCSliderChanged: fAudTrack4DrcSlider];
}
+ else if ([[fAudTrack4MixPopUp selectedItem] tag] == HB_ACODEC_AC3)
+ {
+ [fAudTrack4RatePopUp setEnabled: NO];
+ [fAudTrack4BitratePopUp setEnabled: NO];
+ [fAudTrack4DrcSlider setEnabled: NO];
+ [fAudTrack4DrcField setEnabled: NO];
+ }
}