Mercurial > mplayer.hg
diff mplayer.c @ 13228:a47aaa6b7324
slave mode command to en/disable vsync, patch by Aurelien Jacobs <aurel at gnuage.org>
author | faust3 |
---|---|
date | Thu, 02 Sep 2004 12:02:06 +0000 |
parents | ce046ef860da |
children | aa13937da8a0 |
line wrap: on
line diff
--- a/mplayer.c Thu Sep 02 11:34:25 2004 +0000 +++ b/mplayer.c Thu Sep 02 12:02:06 2004 +0000 @@ -2980,6 +2980,9 @@ tv_step_chanlist((tvi_handle_t*)(demuxer->priv)); } break; #endif + case MP_CMD_SWITCH_VSYNC: { + vo_vsync = ( cmd->nargs > 0 )? cmd->args[0].v.i : !vo_vsync; + } break; case MP_CMD_VO_FULLSCREEN: { #ifdef HAVE_NEW_GUI