summaryrefslogtreecommitdiffstats
path: root/macosx/HBAudio.m
diff options
context:
space:
mode:
authordynaflash <[email protected]>2010-11-10 19:35:39 +0000
committerdynaflash <[email protected]>2010-11-10 19:35:39 +0000
commit246f060bf4a8cd228f95bc59e2a51f4d466d1f4f (patch)
tree13f4283488fd93577a5cae4226acdddae4c99bc5 /macosx/HBAudio.m
parent98d004a546fd76f8e57e132a3faafa04135e5e3f (diff)
MacGui: disable the drc audio widget unless the source is AC3.
- original patch by Rodeo ... KVO refactor by circleone. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3670 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/HBAudio.m')
-rw-r--r--macosx/HBAudio.m8
1 files changed, 6 insertions, 2 deletions
diff --git a/macosx/HBAudio.m b/macosx/HBAudio.m
index 9e51a8d7f..d21c6fbbf 100644
--- a/macosx/HBAudio.m
+++ b/macosx/HBAudio.m
@@ -607,7 +607,8 @@ static NSMutableArray *masterBitRateArray = nil;
if (YES == retval) {
int myTrackCodec = [[[self track] objectForKey: keyAudioInputCodec] intValue];
- if (HB_ACODEC_AC3 != myTrackCodec) {
+ int myCodecCodec = [[[self codec] objectForKey: keyAudioCodec] intValue];
+ if (HB_ACODEC_AC3 != myTrackCodec || HB_ACODEC_AC3_PASS == myCodecCodec) {
retval = NO;
}
}
@@ -619,9 +620,12 @@ static NSMutableArray *masterBitRateArray = nil;
{
NSSet *retval = nil;
- if (YES == [key isEqualToString: @"enabled"] || YES == [key isEqualToString: @"AC3Enabled"]) {
+ if (YES == [key isEqualToString: @"enabled"]) {
retval = [NSSet setWithObjects: @"track", nil];
}
+ else if (YES == [key isEqualToString: @"AC3Enabled"]) {
+ retval = [NSSet setWithObjects: @"track", @"codec", nil];
+ }
else if (YES == [key isEqualToString: @"mixdownEnabled"]) {
retval = [NSSet setWithObjects: @"track", @"mixdown", nil];
}