From 73900ca1c3eb04516cfd1dd628a1fc2d65ff65b7 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Fri, 28 Dec 2012 10:46:02 +0100 Subject: [PATCH] vdpau: silence a clang warning It's just some braces... --- video/out/vo_vdpau.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/video/out/vo_vdpau.c b/video/out/vo_vdpau.c index c167021831..da6a4cca09 100644 --- a/video/out/vo_vdpau.c +++ b/video/out/vo_vdpau.c @@ -194,11 +194,12 @@ static int change_vdptime_sync(struct vdpctx *vc, unsigned int *t) unsigned int t1 = *t; unsigned int t2 = GetTimer(); 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) vdp_time -= (t2 - t1) * 1000ULL; else vdp_time = old; + } mp_msg(MSGT_VO, MSGL_DBG2, "[vdpau] adjusting VdpTime offset by %f µs\n", (int64_t)(vdp_time - old) / 1000.); vc->last_vdp_time = vdp_time;