l1npengtul / libuvc-rs

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

Simplify start_streaming userdata stuff #28

Open coolreader18 opened 2 years ago

coolreader18 commented 2 years 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.