Fix a logic error that caused the ac-3 track to be always added in the destination file.

This commit is contained in:
Damiano Galassi committed 2014-08-12 14:03:36 +02:00
1 parent a881dfcb96
commit 109a71d3b4
1 file changed
+1 -1
+1 -1
View File
@@ -167,7 +167,7 @@
for (MP42Track *track in fileImporter.tracks) {
if ([track.format isEqualToString:MP42AudioFormatAC3]) {
if ([[[NSUserDefaults standardUserDefaults] valueForKey:@"SBAudioConvertAC3"] boolValue]) {
if ([[[NSUserDefaults standardUserDefaults] valueForKey:@"SBAudioKeepAC3"] boolValue] ||
if ([[[NSUserDefaults standardUserDefaults] valueForKey:@"SBAudioKeepAC3"] boolValue] &&
![(MP42AudioTrack *)track fallbackTrack]) {
MP42AudioTrack *copy = [track copy];
[copy setNeedConversion:YES];