From 6d6ae638fa0a6f00c8e964be5b966546b8f77834 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 29 Jul 2012 21:53:23 +0200 Subject: 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. --- input/lirc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/input/lirc.c b/input/lirc.c index 490abe2cb1..23454d6aee 100644 --- a/input/lirc.c +++ b/input/lirc.c @@ -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; } -- cgit v1.2.3