mirror of https://github.com/mpv-player/mpv
parent
8bf34950c1
commit
e2c0e7f5c2
|
@ -397,11 +397,9 @@ static void update_vsync_timing_after_swap(struct vo *vo)
|
||||||
MP_WARN(vo, "Reported display FPS seems incorrect.\n"
|
MP_WARN(vo, "Reported display FPS seems incorrect.\n"
|
||||||
"Assuming a value closer to %.3f Hz.\n",
|
"Assuming a value closer to %.3f Hz.\n",
|
||||||
1e6 / in->estimated_vsync_interval);
|
1e6 / in->estimated_vsync_interval);
|
||||||
in->vsync_interval = in->estimated_vsync_interval;
|
|
||||||
} else {
|
} else {
|
||||||
MP_WARN(vo, "Switching back to assuming %.3f Hz.\n",
|
MP_WARN(vo, "Switching back to assuming %.3f Hz.\n",
|
||||||
1e6 / in->nominal_vsync_interval);
|
1e6 / in->nominal_vsync_interval);
|
||||||
in->vsync_interval = in->nominal_vsync_interval;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
in->vsync_interval = use_estimated ? (int64_t)in->estimated_vsync_interval
|
in->vsync_interval = use_estimated ? (int64_t)in->estimated_vsync_interval
|
||||||
|
|
Loading…
Reference in New Issue