summaryrefslogtreecommitdiffstats
path: root/video/out/vo_vdpau.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-08-04 19:23:07 +0200
committerwm4 <wm4@nowhere>2015-08-04 19:23:07 +0200
commit417e256c215e555198db1796edec3cfafd044459 (patch)
tree97c44ed784e70d26c20c3a1c9de3197cfbad260f /video/out/vo_vdpau.c
parente5d3180889ab14a57aacb9772ee67ad24478a3f1 (diff)
downloadmpv-417e256c215e555198db1796edec3cfafd044459.tar.bz2
mpv-417e256c215e555198db1796edec3cfafd044459.tar.xz
vo_vdpau: fix frame scheduling if display FPS is unknown
Pretty stupid: vo_get_vsync_interval() returns a negative value if the display FPS is unknown (e.g. xrandr not compiled), and the comparison whether the value is below 0 fails later because it's assigned to an unsigned int. Regression since commit e3d85ad4. Also, fix some comments in vo.c.
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 7e7771f209..20457b602e 100644
--- a/video/out/vo_vdpau.c
+++ b/video/out/vo_vdpau.c
@@ -110,7 +110,7 @@ struct vdpctx {
VdpTime recent_vsync_time;
float user_fps;
int composite_detect;
- unsigned int vsync_interval;
+ int vsync_interval;
uint64_t last_queue_time;
uint64_t queue_time[MAX_OUTPUT_SURFACES];
uint64_t last_ideal_time;