1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-22 23:02:37 +00:00

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

View File

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