Skip to content
This repository has been archived by the owner on Jun 25, 2020. It is now read-only.

Commit

Permalink
Change GPUImageFilterGroup to GPUImageOutput<GPUImageInput>
Browse files Browse the repository at this point in the history
  • Loading branch information
anton-smule committed Jul 27, 2017
1 parent d4ba064 commit fd31a9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/PBJVision.m
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ @interface PBJVision () <
@property (nonatomic, readonly) GPUImageView *filteredPreviewView;

@property (nonatomic, strong) GPUImageMovie *movieDataInput;
@property (nonatomic, strong) GPUImageFilterGroup *currentFilterGroup;
@property (nonatomic, strong) GPUImageOutput<GPUImageInput> *currentFilterGroup;
@property (nonatomic, strong) VideoFilterManager *filterManager;
@property (nonatomic, assign) VideoFilterType currentFilterType;

Expand Down Expand Up @@ -2798,7 +2798,7 @@ - (void)_renderSampleBuffer:(CMSampleBufferRef)sampleBuffer
[_movieDataInput removeTarget:_currentFilterGroup];
[_currentFilterGroup removeAllTargets];

_currentFilterGroup = [_filterManager filterForType:self.currentFilterType airbrushFilterType:self.airbrushFilterType];
_currentFilterGroup = [_filterManager filterWithType:self.currentFilterType airbrushFilterType:self.airbrushFilterType];

[_movieDataInput addTarget:_currentFilterGroup];
[_currentFilterGroup addTarget:_filteredPreviewView];
Expand Down

0 comments on commit fd31a9c

Please sign in to comment.