[MPlayer-users] Input config not working?

Alan Larkin nobrow at eircom.net
Fri Jul 28 10:46:54 CEST 2006


RC wrote:
> 
>> Can anyone tell me what Im doing wrong here:
>>
>> $~/.mplayer$ cat config
>> # Write your default config options here!
>>
>> #MOUSE_BTN0 = pause
>> #MOUSE_BTN3 = volume +1
>> #MOUSE_BTN4 = volume -1
>> #MOUSE_BTN0_DBL = vo_fullscreen
>> SPACE = vo_fullscreen
> 
> There's no "=" sign in input.conf

I tried it with and without. The following and a glance at the code made
me think '=' was necessary:

$~/.mplayer$ cat config
# Write your default config options here!

#MOUSE_BTN0 pause
#MOUSE_BTN3 volume +1
#MOUSE_BTN4 volume -1
#MOUSE_BTN0_DBL vo_fullscreen
SPACE vo_fullscreen


$ mplayer an.avi
MPlayer 1.0pre8-4.0.3 (C) 2000-2006 MPlayer Team
CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 4400+ (Family: 15, Model:
35, Stepping: 2)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2

Option SPACE needs a parameter at line 7


And from parser-cfg.c:145

/* check '=' */
if (line[line_pos++] != '=') {
  PRINT_LINENUM;
  mp_msg(MSGT_CFGPARSER,MSGL_ERR,"Option %s needs a parameter at line
%d\n",opt,line_num);
  ret = -1;
  errors++;
  continue;
}

???



More information about the MPlayer-users mailing list