From 0bba33a46c3ac94b5be0682fd0a00dbff4c507eb Mon Sep 17 00:00:00 2001 From: Damiano Galassi Date: Tue, 27 Sep 2016 09:47:26 +0200 Subject: [PATCH] Fix audio fallback. --- Classes/PropertyView/SBSoundViewController.m | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Classes/PropertyView/SBSoundViewController.m b/Classes/PropertyView/SBSoundViewController.m index 2b91985..2b22674 100755 --- a/Classes/PropertyView/SBSoundViewController.m +++ b/Classes/PropertyView/SBSoundViewController.m @@ -42,14 +42,15 @@ _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.conversionSettings.format != kMP42AudioCodecType_MPEG4AAC) { NSInteger i = 1; NSInteger selectedItem = 0; for (MP42AudioTrack *fileTrack in [self.file tracksWithMediaType:kMP42MediaType_Audio]) { if (fileTrack.format == kMP42AudioCodecType_MPEG4AAC || - fileTrack.format == kMP42AudioCodecType_MPEG4AAC_HE) { + fileTrack.format == kMP42AudioCodecType_MPEG4AAC_HE || + fileTrack.conversionSettings.format == kMP42AudioCodecType_MPEG4AAC) { NSMenuItem *newItem = [[NSMenuItem alloc] initWithTitle:[NSString stringWithFormat:@"%@ - %@ - %@", fileTrack.trackId ? [NSString stringWithFormat:@"%d", fileTrack.trackId] : @"na", fileTrack.name,