lirc: silence output in case LIRC can't be opened

By default mplayer attempts to use LIRC. If LIRC can't be opened, a
bunch of warnings are printed. Since mplayer is often built with LIRC
enabled by default, many users will see these rather pointless
warnings. Lower verbosity, so that the warnings are not visible by
default anymore.
This commit is contained in:
wm4 2012-07-29 21:53:23 +02:00
parent d86216685b
commit 6d6ae638fa
1 changed files with 2 additions and 2 deletions

View File

@ -41,8 +41,8 @@ mp_input_lirc_init(void) {
int mode;
mp_tmsg(MSGT_LIRC,MSGL_V,"Setting up LIRC support...\n");
if((lirc_sock=lirc_init("mplayer",1))==-1){
mp_tmsg(MSGT_LIRC,MSGL_ERR,"Failed to open LIRC support. You will not be able to use your remote control.\n");
if((lirc_sock=lirc_init("mplayer",0))==-1){
mp_tmsg(MSGT_LIRC,MSGL_V,"Failed to open LIRC support. You will not be able to use your remote control.\n");
return -1;
}