Mercurial > mplayer.hg
comparison input/input.c @ 13946:e632b43f0598
Reduce excessive verbosity.
author | diego |
---|---|
date | Mon, 15 Nov 2004 09:09:29 +0000 |
parents | 46910a7aa7e1 |
children | 28a6f0847c58 |
comparison
equal
deleted
inserted
replaced
13945:c917b3ff0b27 | 13946:e632b43f0598 |
---|---|
1350 mp_cmd_bind_t* binds = NULL; | 1350 mp_cmd_bind_t* binds = NULL; |
1351 | 1351 |
1352 fd = open(file,O_RDONLY); | 1352 fd = open(file,O_RDONLY); |
1353 | 1353 |
1354 if(fd < 0) { | 1354 if(fd < 0) { |
1355 mp_msg(MSGT_INPUT,MSGL_ERR,"Can't open input config file %s: %s\n",file,strerror(errno)); | 1355 mp_msg(MSGT_INPUT,MSGL_V,"Can't open input config file %s: %s\n",file,strerror(errno)); |
1356 return 0; | 1356 return 0; |
1357 } | 1357 } |
1358 | 1358 |
1359 mp_msg(MSGT_INPUT,MSGL_V,"Parsing input config file %s\n",file); | 1359 mp_msg(MSGT_INPUT,MSGL_V,"Parsing input config file %s\n",file); |
1360 | 1360 |
1376 buffer[bs-1] = '\0'; | 1376 buffer[bs-1] = '\0'; |
1377 } | 1377 } |
1378 } | 1378 } |
1379 // Empty buffer : return | 1379 // Empty buffer : return |
1380 if(bs <= 1) { | 1380 if(bs <= 1) { |
1381 mp_msg(MSGT_INPUT,MSGL_INFO,"Input config file %s parsed: %d binds\n",file,n_binds); | 1381 mp_msg(MSGT_INPUT,MSGL_V,"Input config file %s parsed: %d binds\n",file,n_binds); |
1382 if(binds) | 1382 if(binds) |
1383 cmd_binds = binds; | 1383 cmd_binds = binds; |
1384 close(fd); | 1384 close(fd); |
1385 return 1; | 1385 return 1; |
1386 } | 1386 } |
1517 free(file); | 1517 free(file); |
1518 } | 1518 } |
1519 // Try global conf dir | 1519 // Try global conf dir |
1520 file = MPLAYER_CONFDIR "/input.conf"; | 1520 file = MPLAYER_CONFDIR "/input.conf"; |
1521 if(! mp_input_parse_config(file)) | 1521 if(! mp_input_parse_config(file)) |
1522 mp_msg(MSGT_INPUT,MSGL_WARN,"Falling back on default (hardcoded) input config\n"); | 1522 mp_msg(MSGT_INPUT,MSGL_V,"Falling back on default (hardcoded) input config\n"); |
1523 } | 1523 } |
1524 else | 1524 else |
1525 { | 1525 { |
1526 // free file if it was allocated by get_path() | 1526 // free file if it was allocated by get_path() |
1527 if( file != config_file) | 1527 if( file != config_file) |