This commit is contained in:
Nathan Sobo 2022-08-29 11:40:30 -06:00 committed by Antonio Scandurra
parent 497232ee59
commit 0df97dce02

View file

@ -72,8 +72,6 @@ fn main() {
let stream: id = msg_send![stream, initWithFilter: filter configuration: config delegate: nil];
let error: id = nil;
let _: () = msg_send![stream, addStreamOutput: output type: 0 sampleHandlerQueue: dispatch_get_main_queue() error: &error];
println!("Added stream output... error? {}", string_from_objc(msg_send![error, localizedDescription]));
let start_capture_completion = ConcreteBlock::new(move |error: id| {
if !error.is_null() {
@ -81,7 +79,7 @@ fn main() {
return;
}
println!("starting capture");
});
assert!(!stream.is_null());