input/lirc: don't show errors even if LIRC init fails
commitd549a555bb0021809d853e3d95af32cd96e3ff20
authorUoti Urpala <uau@mplayer2.org>
Fri, 3 Aug 2012 21:40:47 +0000 (4 00:40 +0300)
committerUoti Urpala <uau@mplayer2.org>
Fri, 3 Aug 2012 21:40:47 +0000 (4 00:40 +0300)
treeac1cb068506c6cc4176d9507fade51c48bf45b46
parent906366f6e103f5b36eabcd11feeeb705598a2dcf
input/lirc: don't show errors even if LIRC init fails

LIRC support is enabled by default if the machine has liblircclient
development headers installed, and it's also enabled in at least some
distro packages. However, most machines will not have the LIRC daemon
running. In this case the LIRC input initialization code printed three
lines of errors: two from the liblircclient lirc_init() function
called with verbose mode enabled, and one from the player input code.
The first two lines also ignored message level settings as they were
output directly by the library. Disable these messages: call
lirc_init() without verbose mode, and move the player message from
MSGL_ERR to MSGL_V. The first change unfortunately means that there
are no details about the error available in case you expected LIRC
support to work.
input/lirc.c