Skip to content
Snippets Groups Projects
Commit 243cd408 authored by Nicolas Pope's avatar Nicolas Pope
Browse files

Remove waitkey delay

parent 9da19cc8
No related branches found
No related tags found
1 merge request!134Fix stream bugs
Pipeline #15439 passed
......@@ -93,13 +93,13 @@ int main(int argc, char **argv) {
cv::putText(frame, std::string("Time: ") + std::to_string(time) + std::string("s"), cv::Point(10,20), cv::FONT_HERSHEY_PLAIN, 1, cv::Scalar(0,0,255));
cv::imshow("Player", frame);
}
int key = cv::waitKey(20);
int key = cv::waitKey(1);
if (key >= 48 && key <= 57) {
current_stream = key - 48;
} else if (key == 'd') {
current_channel = (current_channel == 0) ? 1 : 0;
} else if (key == 27) {
r.end();
ftl::timer::stop(false);
}
}
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment