diff options
author | wm4 <wm4@nowhere> | 2014-09-10 03:16:43 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-09-10 03:24:45 +0200 |
commit | e9b756c7ad7d51b41b2ccf0f72eb904b0eea2169 (patch) | |
tree | 10f6909622b28c8e5e7376137d1651e44055d50f /input/lirc.c | |
parent | 564b957cc31a33124a935ea8678e5bbb710fc082 (diff) | |
download | mpv-e9b756c7ad7d51b41b2ccf0f72eb904b0eea2169.tar.bz2 mpv-e9b756c7ad7d51b41b2ccf0f72eb904b0eea2169.tar.xz |
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.
Diffstat (limited to 'input/lirc.c')
-rw-r--r-- | input/lirc.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) { |