Fix error condition.
This commit is contained in:
3 files changed
+4
-4
No files matched your search
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user