0xd34d10cc / shar

Video streaming software (WIP)
MIT License
3 stars 2 forks source link

Capture thread panics after change of display from DisplayID::Primary to DisplayID::Index(0) #287

Closed 0xd34d10cc closed 2 years ago

0xd34d10cc commented 3 years ago

Due to this unwrap:

https://github.com/0xd34d10cc/shar/blob/3398a5f365402bfdfddcff6bf741e46dcfe010c9/src/capture.rs#L34

thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: Kind(Other)', src\capture.rs:34:32
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
0xd34d10cc commented 2 years ago

Not a problem in C++ version