summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordynaflash <[email protected]>2008-04-11 16:39:14 +0000
committerdynaflash <[email protected]>2008-04-11 16:39:14 +0000
commit6630d9d749cb8b050d8020d98d190ebaa548cf3c (patch)
tree9cf0afd2c560573eef00646c4b5a33db67a152df
parent3fb351a60b930924de57c907fa83008342f0a4b0 (diff)
MacGui: Get rid of some harmless warnings in Controller.mm during compiling.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1403 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r--macosx/Controller.mm29
1 files changed, 18 insertions, 11 deletions
diff --git a/macosx/Controller.mm b/macosx/Controller.mm
index 833bfff2f..5f5460f98 100644
--- a/macosx/Controller.mm
+++ b/macosx/Controller.mm
@@ -2801,16 +2801,23 @@ the user is using "Custom" settings by determining the sender*/
{
audiotrackPopUp = fAudLang2PopUp;
audiocodecPopUp = fAudTrack2CodecPopUp;
+ sampleratePopUp = fAudTrack2RatePopUp;
+ bitratePopUp = fAudTrack2BitratePopUp;
}
else if (sender == fAudTrack3CodecPopUp)
{
audiotrackPopUp = fAudLang3PopUp;
audiocodecPopUp = fAudTrack3CodecPopUp;
+ sampleratePopUp = fAudTrack3RatePopUp;
+ bitratePopUp = fAudTrack3BitratePopUp;
}
- else if (sender == fAudTrack4CodecPopUp)
+ //else if (sender == fAudTrack4CodecPopUp)
+ else
{
audiotrackPopUp = fAudLang4PopUp;
audiocodecPopUp = fAudTrack4CodecPopUp;
+ sampleratePopUp = fAudTrack4RatePopUp;
+ bitratePopUp = fAudTrack4BitratePopUp;
}
/* changing the codecs on offer may mean that we can / can't offer mono or 6ch, */
@@ -2972,7 +2979,7 @@ the user is using "Custom" settings by determining the sender*/
audiotrackPopUp = fAudLang3PopUp;
audiocodecPopUp = fAudTrack3CodecPopUp;
}
- else if (sender == fAudTrack4CodecPopUp)
+ else
{
audiotrackPopUp = fAudLang4PopUp;
audiocodecPopUp = fAudTrack4CodecPopUp;
@@ -3117,7 +3124,7 @@ the user is using "Custom" settings by determining the sender*/
sampleratePopUp = fAudTrack3RatePopUp;
bitratePopUp = fAudTrack3BitratePopUp;
}
- else if (sender == fAudLang4PopUp)
+ else
{
mixdownPopUp = fAudTrack4MixPopUp;
audiocodecPopUp = fAudTrack4CodecPopUp;
@@ -3331,7 +3338,7 @@ the user is using "Custom" settings by determining the sender*/
drcSlider = fAudTrack1DrcSlider;
drcField = fAudTrack1DrcField;
}
- if (sender == fAudTrack2MixPopUp)
+ else if (sender == fAudTrack2MixPopUp)
{
audiotrackPopUp = fAudLang2PopUp;
audiocodecPopUp = fAudTrack2CodecPopUp;
@@ -3341,7 +3348,7 @@ the user is using "Custom" settings by determining the sender*/
drcSlider = fAudTrack2DrcSlider;
drcField = fAudTrack2DrcField;
}
- if (sender == fAudTrack3MixPopUp)
+ else if (sender == fAudTrack3MixPopUp)
{
audiotrackPopUp = fAudLang3PopUp;
audiocodecPopUp = fAudTrack3CodecPopUp;
@@ -3351,7 +3358,7 @@ the user is using "Custom" settings by determining the sender*/
drcSlider = fAudTrack3DrcSlider;
drcField = fAudTrack3DrcField;
}
- if (sender == fAudTrack4MixPopUp)
+ else
{
audiotrackPopUp = fAudLang4PopUp;
audiocodecPopUp = fAudTrack4CodecPopUp;
@@ -3498,24 +3505,24 @@ the user is using "Custom" settings by determining the sender*/
- (IBAction) audioDRCSliderChanged: (id) sender
{
- NSSlider * drcSlider;
- NSTextField * drcField;
+ NSSlider * drcSlider = nil;
+ NSTextField * drcField = nil;
if (sender == fAudTrack1DrcSlider)
{
drcSlider = fAudTrack1DrcSlider;
drcField = fAudTrack1DrcField;
}
- if (sender == fAudTrack2DrcSlider)
+ else if (sender == fAudTrack2DrcSlider)
{
drcSlider = fAudTrack2DrcSlider;
drcField = fAudTrack2DrcField;
}
- if (sender == fAudTrack3DrcSlider)
+ else if (sender == fAudTrack3DrcSlider)
{
drcSlider = fAudTrack3DrcSlider;
drcField = fAudTrack3DrcField;
}
- if (sender == fAudTrack4DrcSlider)
+ else
{
drcSlider = fAudTrack4DrcSlider;
drcField = fAudTrack4DrcField;