diff options
Diffstat (limited to 'macosx/HBAudio.m')
-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]; } |