summaryrefslogtreecommitdiffstats
path: root/macosx/HBAudioDefaults.m
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2016-11-02 11:46:02 +0100
committerDamiano Galassi <[email protected]>2016-11-02 11:46:02 +0100
commit4f71778cf9a1e73a5b291c9656a71d6d6dc1f976 (patch)
tree116c9fdcb1e11bcb49c9c34a996130d9afc75428 /macosx/HBAudioDefaults.m
parent1eb4a86b9cf2f9749e162f1ac12b2e584c88aa97 (diff)
MacGui: do not show "Auto passthru" in the audio panel encoders pop up. Allow selecting the passthru fallback encoder settings in the audio defaults panel.
Diffstat (limited to 'macosx/HBAudioDefaults.m')
-rw-r--r--macosx/HBAudioDefaults.m8
1 files changed, 8 insertions, 0 deletions
diff --git a/macosx/HBAudioDefaults.m b/macosx/HBAudioDefaults.m
index 5f52d82fe..43e8c858a 100644
--- a/macosx/HBAudioDefaults.m
+++ b/macosx/HBAudioDefaults.m
@@ -37,6 +37,7 @@
{
HBAudioTrackPreset *track = [[HBAudioTrackPreset alloc] initWithContainer:self.container];
track.undo = self.undo;
+ track.fallbackEncoder = self.encoderFallback;
[self insertObject:track inTracksArrayAtIndex:[self countOfTracksArray]];
}
@@ -139,6 +140,11 @@
[[self.undo prepareWithInvocationTarget:self] setEncoderFallback:_encoderFallback];
}
_encoderFallback = encoderFallback;
+
+ for (HBAudioTrackPreset *track in self.tracksArray)
+ {
+ track.fallbackEncoder = encoderFallback;
+ }
}
- (void)setSecondaryEncoderMode:(BOOL)secondaryEncoderMode
@@ -295,6 +301,8 @@
for (NSDictionary *track in preset[@"AudioList"])
{
HBAudioTrackPreset *newTrack = [[HBAudioTrackPreset alloc] init];
+ newTrack.fallbackEncoder = self.encoderFallback;
+
if ([track[@"AudioEncoder"] isKindOfClass:[NSString class]])
{
newTrack.encoder = hb_audio_encoder_get_from_name([track[@"AudioEncoder"] UTF8String]);