From 243cd408065971716e4c37b4c8e38607d4e460d8 Mon Sep 17 00:00:00 2001
From: Nicolas Pope <nwpope@utu.fi>
Date: Mon, 14 Oct 2019 21:50:11 +0300
Subject: [PATCH] Remove waitkey delay

---
 applications/player/src/main.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/applications/player/src/main.cpp b/applications/player/src/main.cpp
index e856a8489..cc0f5039a 100644
--- a/applications/player/src/main.cpp
+++ b/applications/player/src/main.cpp
@@ -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);
 				}
 			}
 		});
-- 
GitLab