Skip to content

nextFrameInBGRCGBitmapContext doesn't stop when I return NO #3

Description

@mladjan

When I return NO first time, method gets called one more time :|

-(BOOL)nextFrameInBGRCGBitmapContext:(CGContextRef *)contextRef {
    videoExportCounter++;
    if (videoExportCounter >= self.arrayOfImages.count) {
        return NO;
    }else{
        UIImage *img = [self.arrayOfImages objectAtIndex:videoExportCounter];
        CGContextRef context = *contextRef;
        CGContextDrawImage(context, CGRectMake(0, 0, self.movieWidth, self.movieHeight), img.CGImage);
        return YES;
    }
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions