From c740e8fde0d60186ac2ef27c741f05164416a6a2 Mon Sep 17 00:00:00 2001 From: Brian Gerfort Date: Fri, 5 May 2017 14:48:47 +0200 Subject: [PATCH] * Fixed a fallback-selection issue for DTS files * Fixed missing "track.enabled = NO" in the Queue feature for AC-3 tracks with a fallback track. --- Classes/PropertyView/SBSoundViewController.m | 2 +- Classes/SBQueueItem.m | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Classes/PropertyView/SBSoundViewController.m b/Classes/PropertyView/SBSoundViewController.m index 969bbd3..f9adc24 100755 --- a/Classes/PropertyView/SBSoundViewController.m +++ b/Classes/PropertyView/SBSoundViewController.m @@ -43,7 +43,7 @@ _fallbacks = [[NSMutableArray alloc] init]; - if ((self.soundTrack.format == kMP42AudioCodecType_AC3 || self.soundTrack.format == kMP42AudioCodecType_EnhancedAC3) && + if ((self.soundTrack.format == kMP42AudioCodecType_AC3 || self.soundTrack.format == kMP42AudioCodecType_EnhancedAC3 || self.soundTrack.format == kMP42AudioCodecType_DTS) && self.soundTrack.conversionSettings.format != kMP42AudioCodecType_MPEG4AAC) { NSInteger i = 1; NSInteger selectedItem = 0; diff --git a/Classes/SBQueueItem.m b/Classes/SBQueueItem.m index 0bdd13b..7a14315 100755 --- a/Classes/SBQueueItem.m +++ b/Classes/SBQueueItem.m @@ -198,6 +198,7 @@ copy.conversionSettings = settings; ((MP42AudioTrack *)track).fallbackTrack = copy; + track.enabled = NO; [self.mp4File addTrack:copy]; }