Magnus Ulimoen
Magnus Ulimoen
There are indeed functions to do this, but exposing this in safe rust is problematic. Ensuring this is threadsafe is difficult and requires digging through the c code
If you have a backtrace that would be very helpful! BTW: You are allowed to panic in the stream, the current behaviour is to catch at the FFI behaviour and...
@Noah-Kennedy I pushed the latest version to 'crates.io` which should fix a double free if your function should crash mid-stream.
@Noah-Kennedy Have you managed to get somewhere on the debugging?
I'm not familiar with the output from `gef`, is intervals a pointer with the value `0x00007fffffffabe8` pointing to zero? I don't quite get why that would SEGFAULT
I've made a bugfix in #18, please check if this solves your problem
That would suggest there are no formats available for streaming. Does your camera work with other software using uvc?
You could call `supported_formats` to get a list of recognized formats for `libuvc`. You could also try opening a stream with `get_stream_handle_with_format`.
Not all cameras supports all modes and configurations, those errors are somewhat normal. The first frame is also corrupted, I've noticed this before on my own hardware
This crate is using cargo features, you can build a static/vendored binary with `cargo b --features vendor`. The sources can be downloaded using `git submodule --init --recursive` instead of extracting...