From e9b756c7ad7d51b41b2ccf0f72eb904b0eea2169 Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 10 Sep 2014 03:16:43 +0200 Subject: input: remove central select() call This is now unused. Get rid of it and all surrounding infrastructure, and replace the remaining "wakeup pipe" with a semaphore. --- input/lirc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'input/lirc.c') diff --git a/input/lirc.c b/input/lirc.c index ce3b979149..2805043c03 100644 --- a/input/lirc.c +++ b/input/lirc.c @@ -93,10 +93,10 @@ static int mp_input_lirc_read(void *pctx,int fd,char* dest, int s) { // Nothing in the buffer, poll the lirc fd if(lirc_nextcode(&code) != 0) { MP_ERR(ctx, "Lirc error.\n"); - return MP_INPUT_DEAD; + return -1; } - if(!code) return MP_INPUT_NOTHING; + if(!code) return 0; // We put all cmds in a single buffer separated by \n while((r = lirc_code2char(ctx->lirc_config,code,&c))==0 && c!=NULL) { -- cgit v1.2.3