Skip to content

Commit

Permalink
Merge pull request BradLarson#1001 from jvaldera/master
Browse files Browse the repository at this point in the history
Fixed an infrequent app crash when a video processing is cancelled.
  • Loading branch information
BradLarson committed May 29, 2013
2 parents 4db09e5 + 845df55 commit 1e4882b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion framework/Source/iOS/GPUImageMovieWriter.m
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,8 @@ - (void)finishRecording;

- (void)finishRecordingWithCompletionHandler:(void (^)(void))handler;
{
if (assetWriter.status == AVAssetWriterStatusCompleted || assetWriter.status == AVAssetWriterStatusCancelled)
if (assetWriter.status == AVAssetWriterStatusCompleted || assetWriter.status == AVAssetWriterStatusCancelled
|| assetWriter.status == AVAssetWriterStatusUnknown)
{
return;
}
Expand Down

0 comments on commit 1e4882b

Please sign in to comment.