Skip to content

Commit

Permalink
Fixes race condition.
Browse files Browse the repository at this point in the history
  • Loading branch information
jcampbell05 committed Oct 30, 2014
1 parent 7313e6b commit c19b5f7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion framework/Source/GPUImageMovie.m
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,8 @@ - (void)processAsset
}
}

if (reader.status != AVAssetReaderStatusReading &&
if (reader.status == AVAssetReaderStatusReading &&
reader.status == AVAssetReaderStatusCancelled &&
[reader startReading] == NO)
{
NSLog(@"Error reading from file at URL: %@", self.url);
Expand Down

0 comments on commit c19b5f7

Please sign in to comment.