mirror of
https://github.com/mpv-player/mpv
synced 2025-04-11 04:01:31 +00:00
vdpau: silence a clang warning
It's just some braces...
This commit is contained in:
parent
671ca2a570
commit
73900ca1c3
@ -194,11 +194,12 @@ static int change_vdptime_sync(struct vdpctx *vc, unsigned int *t)
|
|||||||
unsigned int t1 = *t;
|
unsigned int t1 = *t;
|
||||||
unsigned int t2 = GetTimer();
|
unsigned int t2 = GetTimer();
|
||||||
uint64_t old = vc->last_vdp_time + (t1 - vc->last_sync_update) * 1000ULL;
|
uint64_t old = vc->last_vdp_time + (t1 - vc->last_sync_update) * 1000ULL;
|
||||||
if (vdp_time > old)
|
if (vdp_time > old) {
|
||||||
if (vdp_time > old + (t2 - t1) * 1000ULL)
|
if (vdp_time > old + (t2 - t1) * 1000ULL)
|
||||||
vdp_time -= (t2 - t1) * 1000ULL;
|
vdp_time -= (t2 - t1) * 1000ULL;
|
||||||
else
|
else
|
||||||
vdp_time = old;
|
vdp_time = old;
|
||||||
|
}
|
||||||
mp_msg(MSGT_VO, MSGL_DBG2, "[vdpau] adjusting VdpTime offset by %f µs\n",
|
mp_msg(MSGT_VO, MSGL_DBG2, "[vdpau] adjusting VdpTime offset by %f µs\n",
|
||||||
(int64_t)(vdp_time - old) / 1000.);
|
(int64_t)(vdp_time - old) / 1000.);
|
||||||
vc->last_vdp_time = vdp_time;
|
vc->last_vdp_time = vdp_time;
|
||||||
|
Loading…
Reference in New Issue
Block a user