changeset 16271:03884f9a35cc

Do not set SwapInterval for values < 0.
author reimar
date Fri, 19 Aug 2005 12:16:52 +0000
parents d5374d07492a
children 3934a31bcce4
files DOCS/man/en/mplayer.1 libvo/vo_gl.c
diffstat 2 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/DOCS/man/en/mplayer.1	Fri Aug 19 12:09:44 2005 +0000
+++ b/DOCS/man/en/mplayer.1	Fri Aug 19 12:16:52 2005 +0000
@@ -2718,6 +2718,7 @@
 .IPs  swapinterval=<n>
 Minimum interval in displayed frames between to buffer swaps (default: 1).
 1 is equivalent to enable VSYNC, 0 to disable VSYNC.
+Values < 0 will leave it at the system default.
 This will limit the framerate to (horizontal refresh rate / n).
 Requires GLX_SGI_swap_control support to work.
 With some (most/all?) implementations this only works in fullscreen mode.
--- a/libvo/vo_gl.c	Fri Aug 19 12:09:44 2005 +0000
+++ b/libvo/vo_gl.c	Fri Aug 19 12:16:52 2005 +0000
@@ -150,7 +150,7 @@
 
   glClearColor( 0.0f,0.0f,0.0f,0.0f );
   glClear( GL_COLOR_BUFFER_BIT );
-  if (SwapInterval)
+  if (SwapInterval && swap_interval >= 0)
     SwapInterval(swap_interval);
   gl_buffer = 0;
   gl_buffersize = 0;