From 31e5d5025a0b992e1509c9c8bf607ad2fcc79c15 Mon Sep 17 00:00:00 2001 From: dijunkun Date: Tue, 7 Nov 2023 15:27:57 +0800 Subject: [PATCH] OpenH264 supports Windows platform --- remote_desk_gui/main.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/remote_desk_gui/main.cpp b/remote_desk_gui/main.cpp index 273ae61..0142e09 100644 --- a/remote_desk_gui/main.cpp +++ b/remote_desk_gui/main.cpp @@ -88,7 +88,12 @@ ScreenCaptureX11 *screen_capture = nullptr; #endif char *nv12_buffer = nullptr; + +#ifdef __linux__ std::chrono::_V2::system_clock::time_point last_frame_time_; +#else +std::chrono::steady_clock::time_point last_frame_time_; +#endif typedef enum { mouse = 0, keyboard } ControlType; typedef enum { move = 0, left_down, left_up, right_down, right_up } MouseFlag;