From ffc3aa983d09e4ecd7c130ce576eb19be83d0d94 Mon Sep 17 00:00:00 2001 From: Stefan Seyfried Date: Sun, 25 Mar 2012 20:10:43 +0200 Subject: [PATCH] rcinput: really ignore EV_SYN events --- src/driver/rcinput.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/driver/rcinput.cpp b/src/driver/rcinput.cpp index 535ca984f..c262a00d3 100644 --- a/src/driver/rcinput.cpp +++ b/src/driver/rcinput.cpp @@ -524,6 +524,9 @@ void CRCInput::getMsg_us(neutrino_msg_t * msg, neutrino_msg_data_t * data, uint6 getKeyBegin = (uint64_t) tv.tv_usec + (uint64_t)((uint64_t) tv.tv_sec * (uint64_t) 1000000); while(1) { + /* we later check for ev.type = EV_SYN which is 0x00, so set something invalid here... */ + memset(&ev, 0, sizeof(ev)); + ev.type = EV_MAX; timer_id = 0; if ( timers.size()> 0 ) { @@ -1238,6 +1241,8 @@ printf("[neutrino] CSectionsdClient::EVT_GOT_CN_EPG\n"); } }/* if FDSET */ } /* for NUMBER_OF_EVENT_DEVICES */ + if (ev.type == EV_SYN) + continue; /* ignore... */ if(FD_ISSET(fd_pipe_low_priority[0], &rfds)) {