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

[FIX] file never closed in case of try_open error #59

Merged
merged 1 commit into from
May 11, 2021

Conversation

Guerout-Arnaud
Copy link
Contributor

@Guerout-Arnaud Guerout-Arnaud commented May 11, 2021

Simply close the file opened by try_open if it wasn't the v4l2 loopback file. Does not matter if device_ was given but can matter if it was not and if a file is finally keep for video output.

@Guerout-Arnaud Guerout-Arnaud changed the title [FIX] file never closed in case of error [FIX] file never closed in case of try_open error May 11, 2021
@letmaik letmaik added bug Something isn't working Linux This issue appears on Linux labels May 11, 2021
@letmaik letmaik merged commit d4cc277 into letmaik:master May 11, 2021
@letmaik
Copy link
Owner

letmaik commented May 11, 2021

Good spot! Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Linux This issue appears on Linux
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants