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

AHardwareBuffer resource is not release #1

Open
doleszki opened this issue Aug 28, 2020 · 3 comments
Open

AHardwareBuffer resource is not release #1

doleszki opened this issue Aug 28, 2020 · 3 comments

Comments

@doleszki
Copy link

You need to call AHardwareBuffer_release(h_buffer) on the receiver to release the hardware buffer otherwise the receiver runs out of file descriptors and will stop working after receiving a limited quantity of frames. For me this was at around ~512 received buffers; slightly less since I had some other files open.

@sjfricke
Copy link
Owner

hmm, guess I did forget that, accept PR's ;)

@doleszki
Copy link
Author

doleszki commented Aug 30, 2020 via email

@sjfricke
Copy link
Owner

No totally understand, but figure it would be faster for you to make a PR of the quick change compared to me cloning, building, and testing it on my end. Totally agree should be fixed for future stragglers

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

No branches or pull requests

2 participants