comparison 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
comparison
equal deleted inserted replaced
13227:45f25ea0c5fa 13228:a47aaa6b7324
2978 case MP_CMD_TV_STEP_CHANNEL_LIST : { 2978 case MP_CMD_TV_STEP_CHANNEL_LIST : {
2979 if (file_format == DEMUXER_TYPE_TV) 2979 if (file_format == DEMUXER_TYPE_TV)
2980 tv_step_chanlist((tvi_handle_t*)(demuxer->priv)); 2980 tv_step_chanlist((tvi_handle_t*)(demuxer->priv));
2981 } break; 2981 } break;
2982 #endif 2982 #endif
2983 case MP_CMD_SWITCH_VSYNC: {
2984 vo_vsync = ( cmd->nargs > 0 )? cmd->args[0].v.i : !vo_vsync;
2985 } break;
2983 case MP_CMD_VO_FULLSCREEN: 2986 case MP_CMD_VO_FULLSCREEN:
2984 { 2987 {
2985 #ifdef HAVE_NEW_GUI 2988 #ifdef HAVE_NEW_GUI
2986 if ( use_gui ) guiGetEvent( guiIEvent,(char *)MP_CMD_GUI_FULLSCREEN ); 2989 if ( use_gui ) guiGetEvent( guiIEvent,(char *)MP_CMD_GUI_FULLSCREEN );
2987 else 2990 else