aboutsummaryrefslogtreecommitdiffhomepage
path: root/video/out/vo_vdpau.c
diff options
context:
space:
mode:
authorGravatar wm4 <wm4@nowhere>2015-03-02 19:09:25 +0100
committerGravatar wm4 <wm4@nowhere>2015-03-02 19:09:25 +0100
commit445b3fbf826dd074b1f2a34cddcd3f126462f0d1 (patch)
tree29b51fb3eaa7a2f23d120a265c4f1cc0a1afef1c /video/out/vo_vdpau.c
parent4b177bd5c22fbeeba9ddae77503ab9938f2503c3 (diff)
buid: readd -Wparentheses
This warning wasn't overly helpful in the past, and warned against perfectly fine code. But at least with recent gcc versions, this is the warning that complains about assignments in if expressions (why???), so we want to enable it. Also change all the code this warning complains about for no reason.
Diffstat (limited to 'video/out/vo_vdpau.c')
-rw-r--r--video/out/vo_vdpau.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/vo_vdpau.c b/video/out/vo_vdpau.c
index 4c08786b0b..89bbb142a3 100644
--- a/video/out/vo_vdpau.c
+++ b/video/out/vo_vdpau.c
@@ -778,7 +778,7 @@ static int flip_page_timed(struct vo *vo, int64_t pts_us, int duration)
if (pts < vsync + vc->vsync_interval / 4
&& (vsync - PREV_VSYNC(vc->last_queue_time)
> pts - vc->last_ideal_time + vc->vsync_interval / 2
- || vc->dropped_frame && vsync > vc->dropped_time))
+ || (vc->dropped_frame && vsync > vc->dropped_time)))
pts -= vc->vsync_interval / 2;
vc->dropped_time = ideal_pts;