Mercurial > mplayer.hg
changeset 2122:cc9d4e489a0d
keypress fix by M.Hunold@t-online.de (Michael Hunold)
author | arpi |
---|---|
date | Sun, 07 Oct 2001 17:19:22 +0000 |
parents | 95b8a1e7962d |
children | 4a1c0f484497 |
files | lirc_mp.c |
diffstat | 1 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/lirc_mp.c Sun Oct 07 16:34:47 2001 +0000 +++ b/lirc_mp.c Sun Oct 07 17:19:22 2001 +0000 @@ -135,6 +135,16 @@ } } + // the lirc support is "broken by design": (see mailing list discussion) + // we only accept one command at each call of this subroutine, but the + // "lirc_code2char()" function should be called in a loop + // until it reports "empty"... (see lirc documentation) + // so we need to flush the lirc command queue after we processed one + // command. of course we report if we really lose a message. + while((ret=lirc_code2char(lirc_config,code,&c))==0 && c!=NULL){ + fprintf(stderr, "LIRC: lost command \"%s\"",c); + } + free(code); if(ret==-1){ mp_msg(MSGT_LIRC,MSGL_V,"LIRC: lirc_code2char() returned an error!\n");