Skip to content
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

GPUImageMovie endprocessing crash issue. #2544

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

GoingtoRock
Copy link

@GoingtoRock GoingtoRock commented Dec 7, 2017

AVPlayerItemVideoOutput property inside GPUImageMovie sets videoProcessingQueue as a delegate, so when GPUImageMovie is deallocating, AVPlayerItemVideoOutput won't release then the crash occurs. To fix it, we need to make sure that AVPlayerItemVideoOutput is released properly when the process ends. Hence the following codes are provided at the end of endProcessing method.

References:
#1994
https://stackoverflow.com/questions/29103254/copy-helper-block-crash-in-avfoundation

AVPlayerItemVideoOutput property inside GPUImageMovie sets videoProcessingQueue as a delegate, so when GPUImageMovie is deallocating, AVPlayerItemVideoOutput won't release then the crash occurs. To fix it, AVPlayerItemVideoOutput needs to be released when the process ends. Hence the following codes are provided at the end of endProcessing method.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant