l1npengtul / libuvc-rs

Rust wrapper around libuvc
MIT License
48 stars 17 forks source link

Simplify start_streaming userdata stuff #28

Open coolreader18 opened 1 year ago

coolreader18 commented 1 year ago

I'm pretty sure the closure doesn't have to be Sync, right? It's only ever called with exclusive access anyway. Maybe ActiveStream shouldn't be Sync then, but that also never accesses callback except to drop it.