Skip to content

Commit

Permalink
Merge pull request BradLarson#935 from aburgel/better_twoinput_fix
Browse files Browse the repository at this point in the history
Fix filter resetting to ensure GPUImageTwoInputFilter is in good state
  • Loading branch information
BradLarson committed May 15, 2013
2 parents b33ff86 + 4a0952b commit 96588af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions framework/Source/GPUImageOutput.m
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,8 @@ - (void)removeTarget:(id<GPUImageInput>)targetToRemove;
NSInteger textureIndexOfTarget = [[targetTextureIndices objectAtIndex:indexOfObject] integerValue];

runSynchronouslyOnVideoProcessingQueue(^{
[targetToRemove setInputSize:CGSizeZero atIndex:textureIndexOfTarget];
[targetToRemove setInputTexture:0 atIndex:textureIndexOfTarget];
[targetToRemove setInputSize:CGSizeZero atIndex:textureIndexOfTarget];
[targetToRemove setTextureDelegate:nil atIndex:textureIndexOfTarget];
[targetToRemove setInputRotation:kGPUImageNoRotation atIndex:textureIndexOfTarget];

Expand All @@ -193,8 +193,8 @@ - (void)removeAllTargets;
NSInteger indexOfObject = [targets indexOfObject:targetToRemove];
NSInteger textureIndexOfTarget = [[targetTextureIndices objectAtIndex:indexOfObject] integerValue];

[targetToRemove setInputSize:CGSizeZero atIndex:textureIndexOfTarget];
[targetToRemove setInputTexture:0 atIndex:textureIndexOfTarget];
[targetToRemove setInputSize:CGSizeZero atIndex:textureIndexOfTarget];
[targetToRemove setTextureDelegate:nil atIndex:textureIndexOfTarget];
[targetToRemove setInputRotation:kGPUImageNoRotation atIndex:textureIndexOfTarget];
}
Expand Down

0 comments on commit 96588af

Please sign in to comment.