Fix error condition.

This commit is contained in:
Damiano Galassi committed 2017-09-01 14:20:18 +02:00
1 parent 7f0ca454ba
commit afe8f0e1ff
3 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -163,7 +163,7 @@
- (BOOL)writeToFile:(MP4FileHandle)fileHandle error:(NSError **)outError
{
if (!fileHandle || !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,
+2 -2
View File
@@ -68,7 +68,7 @@
- (BOOL)writeToFile:(MP4FileHandle)fileHandle error:(NSError **)outError
{
if (!fileHandle || !self.trackId) {
if (!fileHandle || !self.trackId || ![super writeToFile:fileHandle error:outError]) {
if (outError != NULL) {
*outError = MP42Error(MP42LocalizedString(@"Error: couldn't mux subtitle track", @"error message"),
nil,
@@ -112,7 +112,7 @@
MP4SetTrackIntegerProperty(fileHandle, self.trackId, "mdia.minf.stbl.stsd.tx3g.displayFlags", displayFlags);
}
return [super writeToFile:fileHandle error:outError];
return YES;
}
- (void)setSomeSamplesAreForced:(BOOL)value
+1 -1
View File
@@ -127,7 +127,7 @@
- (BOOL)writeToFile:(MP4FileHandle)fileHandle error:(NSError **)outError
{
if (!fileHandle || !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 video track", @"error message"),
nil,