Skip to content
This repository has been archived by the owner on Jun 25, 2020. It is now read-only.

Commit

Permalink
add some test code
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Moldover committed May 17, 2018
1 parent f6e0f5a commit 4ec9849
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Source/PBJMediaWriter.m
Original file line number Diff line number Diff line change
Expand Up @@ -618,6 +618,13 @@ - (void)finishWriting
@synchronized( self )
{
NSError *error = _assetWriter.error;
// errorTester++;
// uncomment this to test failed video WRITE errors
// if (errorTester > 2) {
// error = [[NSError alloc] init];
// errorTester = 0;
// }

if ( error ) {
[self transitionToStatus:PBJMediaWriterStatusFailed error:error];
}
Expand All @@ -632,6 +639,8 @@ - (void)finishWriting

}

// int errorTester = 0;

- (void)transitionToStatus:(PBJMediaWriterStatus)newStatus error:(NSError *)error
{
BOOL doNotify = NO;
Expand Down

0 comments on commit 4ec9849

Please sign in to comment.