62 mxvk::VK_Capture *source =
nullptr;
70 if (source ==
nullptr) {
75 bool read_frame =
false;
77 read_frame = source->read(captured);
78 }
catch (
const std::exception &error) {
79 std::cerr <<
"acmxvk: asynchronous camera read failed: "
80 << error.what() <<
'\n';
82 std::cerr <<
"acmxvk: asynchronous camera read failed\n";
84 if (!read_frame || captured.empty()) {
85 std::this_thread::sleep_for(std::chrono::milliseconds(5));