diff options
author | dynaflash <[email protected]> | 2010-11-10 19:35:39 +0000 |
---|---|---|
committer | dynaflash <[email protected]> | 2010-11-10 19:35:39 +0000 |
commit | 246f060bf4a8cd228f95bc59e2a51f4d466d1f4f (patch) | |
tree | 13f4283488fd93577a5cae4226acdddae4c99bc5 /macosx | |
parent | 98d004a546fd76f8e57e132a3faafa04135e5e3f (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')
-rw-r--r-- | macosx/HBAudio.m | 8 |
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]; } |