eye-rs icon indicating copy to clipboard operation
eye-rs copied to clipboard

Add function to stop a device stream

Open pintariching opened this issue 3 years ago • 0 comments

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?

pintariching avatar Sep 27 '21 20:09 pintariching