Closed rytec-nl closed 3 years ago
Makes sense to me. Would you mind sending a PR with your proposed patch so I can give it a proper review and get it in?
Absolutely: https://github.com/raymanfx/libv4l-rs/pull/32
This is my first pull request ever, so please do tell if I should do stuff differently in the future :)
edit: Sorry about the messy commit and revert :( like I said first pull ever.
Don't worry, you're doing great! :) Let's discuss this in the PR.
Hi,
I'm using your library to configure a Raspberry Pi as Output device and have run into an issue when trying to stream. It seems that there is a line missing in
src/io/mmap/stream.rs:218
that reads the returned index from the DQBUF ioctl.In the CaptureStream you do this:
However in the OutputStream implementation the line
self.arena_index = v4l2_buf.index as usize;
is missing. When I added that line all started working.Please let me know if you need any more info or if I'm doing something wrong.
Thanks!