Skip to content

fix GPUImageFourInputFilter bug #2632

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix GPUImageFourInputFilter bug
Change-Id: I23fe2d153e9364655527a1e3bc9e7548ad8024c3
  • Loading branch information
cuijiangtao committed Aug 9, 2019
commit 7086c5a57e8c5e0085f4004c93ebe1c695e4b3f0
4 changes: 2 additions & 2 deletions framework/Source/GPUImageFourInputFilter.m
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ - (CGSize)rotatedSize:(CGSize)sizeToRotate forIndex:(NSInteger)textureIndex;
- (void)newFrameReadyAtTime:(CMTime)frameTime atIndex:(NSInteger)textureIndex;
{
// You can set up infinite update loops, so this helps to short circuit them
if (hasReceivedFirstFrame && hasReceivedSecondFrame && hasReceivedThirdFrame)
if (hasReceivedFirstFrame && hasReceivedSecondFrame && hasReceivedThirdFrame && hasReceivedFourthFrame)
{
return;
}
Expand All @@ -290,7 +290,7 @@ - (void)newFrameReadyAtTime:(CMTime)frameTime atIndex:(NSInteger)textureIndex;
}
if (fourthFrameCheckDisabled)
{
hasReceivedThirdFrame = YES;
hasReceivedFourthFrame = YES;
}

if (!CMTIME_IS_INDEFINITE(frameTime))
Expand Down