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.
This commit is contained in:
wm4 committed 2014-09-10 03:24:45 +02:00
1 parent 564b957cc3
commit e9b756c7ad
6 files changed
+37 -421

No files matched your search

+2 -2
View File
@@ -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) {