diff --git a/README.md b/README.md index aaade3d..a93ff71 100644 --- a/README.md +++ b/README.md @@ -34,17 +34,17 @@ encoder.audioSettings = @ [encoder exportAsynchronouslyWithCompletionHandler:^ { - if (status == AVAssetExportSessionStatusCompleted) + if (encoder.status == AVAssetExportSessionStatusCompleted) { NSLog(@"Video export succeeded"); } - else if (status == AVAssetExportSessionStatusCancelled) + else if (encoder.status == AVAssetExportSessionStatusCancelled) { NSLog(@"Video export cancelled"); } else { - NSLog(@"Video export failed with error: %@ (%d)", error.localizedDescription, error.code); + NSLog(@"Video export failed with error: %@ (%d)", encoder.error.localizedDescription, encoder.error.code); } }]; diff --git a/SDAVAssetExportSession.h b/SDAVAssetExportSession.h index eb3d81d..2187128 100644 --- a/SDAVAssetExportSession.h +++ b/SDAVAssetExportSession.h @@ -75,7 +75,7 @@ * The settings used for encoding the video track. * * A value of nil specifies that appended output should not be re-encoded. - * The dictionary’s keys are from . + * The dictionary’s keys are from . */ @property (nonatomic, copy) NSDictionary *videoSettings;