summaryrefslogtreecommitdiffstats
path: root/macosx/HBAudioDefaults.m
diff options
context:
space:
mode:
Diffstat (limited to 'macosx/HBAudioDefaults.m')
-rw-r--r--macosx/HBAudioDefaults.m4
1 files changed, 3 insertions, 1 deletions
diff --git a/macosx/HBAudioDefaults.m b/macosx/HBAudioDefaults.m
index 304849d79..3c9cff573 100644
--- a/macosx/HBAudioDefaults.m
+++ b/macosx/HBAudioDefaults.m
@@ -132,6 +132,8 @@
self.encoderFallback = hb_audio_encoder_get_from_name(strValue);
}
+ [self.tracksArray removeAllObjects];
+
for (NSDictionary *track in preset[@"AudioList"])
{
HBAudioTrackPreset *newTrack = [[HBAudioTrackPreset alloc] init];
@@ -162,7 +164,7 @@
}
}
-- (void)prepareAudioForPreset:(NSMutableDictionary *)preset
+- (void)prepareAudioDefaultsForPreset:(NSMutableDictionary *)preset
{
// Track selection behavior
if (self.trackSelectionBehavior == HBAudioTrackSelectionBehaviorFirst)