mirror of
https://github.com/thinkonmay/sunshine-sdk.git
synced 2026-08-07 20:44:35 +00:00
fix linux build
This commit is contained in:
parent
3355dc205b
commit
322bc008e5
@ -1858,8 +1858,9 @@ namespace video {
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef WIN32
|
||||
|
||||
auto sleep_period = std::chrono::nanoseconds(1s).count() / config->framerate - cycle.count();
|
||||
#ifdef WIN32
|
||||
if(sleep_period > 0) {
|
||||
LARGE_INTEGER due_time;
|
||||
due_time.QuadPart = sleep_period / -100;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user