Mercurial > mplayer.hg
changeset 15825:8549fc0fb5b1
consume empty lirc events at once.
Patch by Lev A. Melnikovsky {leva at kapitza ras ru}.
author | reimar |
---|---|
date | Mon, 27 Jun 2005 08:16:23 +0000 |
parents | 53231c701b29 |
children | db966bdf6f5b |
files | input/input.c input/input.h input/lirc.c |
diffstat | 3 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/input/input.c Mon Jun 27 07:40:24 2005 +0000 +++ b/input/input.c Mon Jun 27 08:16:23 2005 +0000 @@ -708,6 +708,8 @@ mp_msg(MSGT_INPUT,MSGL_ERR,"Error while reading cmd fd %d: %s\n",mp_fd->fd,strerror(errno)); case MP_INPUT_NOTHING: return r; + case MP_INPUT_RETRY: + continue; } // EOF ? } else if(r == 0) {
--- a/input/input.h Mon Jun 27 07:40:24 2005 +0000 +++ b/input/input.h Mon Jun 27 08:16:23 2005 +0000 @@ -115,6 +115,8 @@ #define MP_INPUT_DEAD -2 // No input was available #define MP_INPUT_NOTHING -3 +//! Input will be available if you try again +#define MP_INPUT_RETRY -4 // For the key's drivers, if possible you can send key up and key down // events. Key up is the default, to send a key down you must use the