57 mxvk::VK_Capture *source =
nullptr;
65 if (source ==
nullptr) {
70 bool read_frame =
false;
72 read_frame = source->read(captured);
73 }
catch (
const std::exception &error) {
74 std::cerr <<
"acmxvk: asynchronous camera read failed: " << error.what() <<
'\n';
76 std::cerr <<
"acmxvk: asynchronous camera read failed\n";
78 if (!read_frame || captured.empty()) {
79 std::this_thread::sleep_for(std::chrono::milliseconds(5));