mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 09:21:09 +02:00
cFrontend: ignore empty frontend events
Origin commit data
------------------
Branch: ni/coolstream
Commit: 3947ac3763
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2012-09-23 (Sun, 23 Sep 2012)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -471,7 +471,6 @@ struct dvb_frontend_event CFrontend::getEvent(void)
|
||||
}
|
||||
|
||||
if (pfd.revents & (POLLIN | POLLPRI)) {
|
||||
FE_TIMER_STOP("poll has event after");
|
||||
memset(&event, 0, sizeof(struct dvb_frontend_event));
|
||||
|
||||
//fop(ioctl, FE_READ_STATUS, &event.status);
|
||||
@@ -481,6 +480,9 @@ struct dvb_frontend_event CFrontend::getEvent(void)
|
||||
continue;
|
||||
}
|
||||
//printf("[fe%d] poll events %d status %x\n", fenumber, pfd.revents, event.status);
|
||||
if (event.status == 0) /* some drivers always deliver an empty event after tune */
|
||||
continue;
|
||||
FE_TIMER_STOP("poll has event after");
|
||||
|
||||
if (event.status & FE_HAS_LOCK) {
|
||||
printf("[fe%d] ****************************** FE_HAS_LOCK: freq %lu\n", fenumber, (long unsigned int)event.parameters.frequency);
|
||||
|
Reference in New Issue
Block a user