mirror of
https://github.com/game-stop/veejay.git
synced 2025-12-16 21:00:00 +01:00
use monotonic clock instead of system clock, allow calibration of any stream source and not just video4linux devices
This commit is contained in:
@@ -58,7 +58,7 @@ static void net_delay(long ms, long sec )
|
||||
struct timespec ts;
|
||||
ts.tv_sec = sec;
|
||||
ts.tv_nsec = MS_TO_NANO( ms );
|
||||
clock_nanosleep( CLOCK_REALTIME,0, &ts, NULL );
|
||||
clock_nanosleep( CLOCK_MONOTONIC,0, &ts, NULL );
|
||||
}
|
||||
|
||||
static int my_screen_id = -1;
|
||||
|
||||
Reference in New Issue
Block a user