This commit is contained in:
Damiano Galassi committed 2017-09-01 14:16:28 +02:00
1 parent e131e4ccf1
commit 7f0ca454ba
5 files changed
+76 -83

No files matched your search

+8 -7
View File
@@ -163,12 +163,13 @@
- (BOOL)writeToFile:(MP4FileHandle)fileHandle error:(NSError **)outError
{
if (!fileHandle) {
return NO;
}
if (self.trackId) {
[super writeToFile:fileHandle error:outError];
if (!fileHandle || !self.trackId || [super writeToFile:fileHandle error:outError]) {
if (outError != NULL) {
*outError = MP42Error(MP42LocalizedString(@"Error: couldn't mux audio track", @"error message"),
nil,
120);
return NO;
}
}
if (self.updatedProperty[@"volume"] || !self.muxed) {
@@ -209,7 +210,7 @@
}
}
return (self.trackId > 0);
return YES;
}
- (void)setConversionSettings:(MP42AudioConversionSettings *)conversionSettings