Closed pdcarroll closed 6 years ago
You're fully rebuilding the filter chain for each of your movie inputs. While removeAllTargets()
disconnects the previous movie from the filter chain, you're then trying to reconnect greyscaleFilte, invertFilter, and renderView to each other when they're already connected. That should be what's throwing the error.
Try connecting them only once on the first movie you play, then merely swapping out the movie input as it changes.
That makes sense. I went ahead and re-factored my code to load/unload a separate view controller for each video that encapsulates the GPUImage filters. It's a little cleaner and it solves this issue.
Thanks, Brad!
I have an application that plays a set of videos (via local file URLs). Each video uses the same GPUImage filters. Once a video playback has ended, it plays the next video from the set.
My issue is that, starting with the second video playback, I receive this warning:
I tried creating a new MovieInput for each playback and also tried creating a new RenderView for each playback, but still receive the warning. Anyone run into this before?