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

Add function to stop a device stream #5

Open
pintariching opened this issue Sep 27, 2021 · 0 comments
Open

Add function to stop a device stream #5

pintariching opened this issue Sep 27, 2021 · 0 comments

Comments

@pintariching
Copy link

I'm using a camera that uses the tiscamera library. However that is written in C++. I'm currently working a project in rust that would use that camera but I'm getting similar problems that are probably specific to this camera.
I can get a solid stream working, but only "once per plug in" so to say. If I start a stream, end the program with CTRL+C and then start the program once again, it hangs indefinitely on the line let frame = stream.next().unwrap() without any errors and also without frames.

This happens if the stream is not "properly" ended I think. When I used the above library and opened and closed the stream I could re-run the program without needing to plug the camera out and back in.

Would it be reasonable to implement such a function to stop a stream?

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

1 participant