diff options
author | wm4 <wm4@nowhere> | 2015-07-01 19:25:13 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-07-01 22:38:22 +0200 |
commit | e3d85ad46dfbe8398b5e8573739b5f7222b7f1fe (patch) | |
tree | c5de5681a741f590b455fc3a10143f84574134ef /video/out/vo_vdpau.c | |
parent | 03e062d53e3822591d0265a1062161a87e2795c1 (diff) | |
download | mpv-e3d85ad46dfbe8398b5e8573739b5f7222b7f1fe.tar.bz2 mpv-e3d85ad46dfbe8398b5e8573739b5f7222b7f1fe.tar.xz |
vo: better magic value for unknown vsync interval
The value 1 is useful in some contexts, but not such a good choice
otherwise.
Diffstat (limited to 'video/out/vo_vdpau.c')
-rw-r--r-- | video/out/vo_vdpau.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/video/out/vo_vdpau.c b/video/out/vo_vdpau.c index bcee3daba2..2e513e91bd 100644 --- a/video/out/vo_vdpau.c +++ b/video/out/vo_vdpau.c @@ -723,6 +723,7 @@ static void flip_page(struct vo *vo) } else if (vc->user_fps == 0) { vc->vsync_interval = vo_get_vsync_interval(vo) * 1000; } + vc->vsync_interval = MPMAX(vc->vsync_interval, 1); if (duration > INT_MAX / 1000) duration = -1; |