You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use scrap::*;
fn main() {
for i in 1..100 {
let display = Display::primary()?;
Capturer::new(display)?;
}
}
Not that anyone would want to initialise the Capturer several times (I stumbled on this by accident) but I think this is caused by this:
After this call returns, the stream is stopped. When the stream stops, its callback is called
with a status of kCGDisplayStreamFrameStatusStopped. You must wait until this callback is
received before releasing the display stream object.
Not that anyone would want to initialise the Capturer several times (I stumbled on this by accident) but I think this is caused by this:
https://github.com/quadrupleslap/scrap/blob/master/src/quartz/capturer.rs#L75
I tried keeping a pointer reference and moving
in the handler but it still sigsegv
I guess we would need to wait for the handler to be over inside drop
The text was updated successfully, but these errors were encountered: