Update of /cvsroot/mplayer/main In directory mplayer:/var/tmp.root/cvs-serv23791 Modified Files: lirc_mp.c Log Message: keypress fix by M.Hunold@t-online.de (Michael Hunold) Index: lirc_mp.c =================================================================== RCS file: /cvsroot/mplayer/main/lirc_mp.c,v retrieving revision 1.10 retrieving revision 1.11 diff -u -r1.10 -r1.11 --- lirc_mp.c 27 Sep 2001 17:03:39 -0000 1.10 +++ lirc_mp.c 7 Oct 2001 17:19:22 -0000 1.11 @@ -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");
participants (1)
-
Arpi of Ize