mirror of
https://github.com/mpv-player/mpv
synced 2024-12-22 14:52:43 +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:
parent
d86216685b
commit
6d6ae638fa
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user