diff options
| author | phintuka <phintuka> | 2006-09-12 14:52:31 +0000 |
|---|---|---|
| committer | phintuka <phintuka> | 2006-09-12 14:52:31 +0000 |
| commit | 4ebc2df2af8bbdca8b2d0b5bc93113affdf609a9 (patch) | |
| tree | c6eef491015d6591f6fe0b119b66991299283b26 | |
| parent | 53507bd60c118b43ff3318bdb1d767e3b809b227 (diff) | |
| download | xineliboutput-4ebc2df2af8bbdca8b2d0b5bc93113affdf609a9.tar.gz xineliboutput-4ebc2df2af8bbdca8b2d0b5bc93113affdf609a9.tar.bz2 | |
Allow shorter lines from lircd
| -rw-r--r-- | xine_frontend_lirc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/xine_frontend_lirc.c b/xine_frontend_lirc.c index f1e5e6bc..ccd402c7 100644 --- a/xine_frontend_lirc.c +++ b/xine_frontend_lirc.c @@ -6,7 +6,7 @@ * * Almost directly copied from vdr-1.3.34 (lirc.c : cLircRemote) * - * $Id: xine_frontend_lirc.c,v 1.2 2006-08-05 19:23:13 phintuka Exp $ + * $Id: xine_frontend_lirc.c,v 1.3 2006-09-12 14:52:31 phintuka Exp $ * */ @@ -20,6 +20,7 @@ #define KEYPRESSDELAY 150 /* ms */ #define LIRC_KEY_BUF 30 #define LIRC_BUFFER_SIZE 128 +#define MIN_LIRCD_CMD_LEN 5 /* static data */ pthread_t lirc_thread; @@ -101,7 +102,7 @@ void *lirc_receiver_thread(void *fe) break; } - if (ret > 21) { + if (ret >= MIN_LIRCD_CMD_LEN) { unsigned int count; char KeyName[LIRC_KEY_BUF]; LOGDBG("LIRC: %s", buf); |
