summaryrefslogtreecommitdiff
path: root/eit.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <kls (at) cadsoft (dot) de>2003-05-30 18:00:00 +0200
committerKlaus Schmidinger <kls (at) cadsoft (dot) de>2003-05-30 18:00:00 +0200
commitd072cc6da2e109d0dc6b98375a1bab3a2ac83948 (patch)
treeed8f998f778fca488ddb5299e738cb36b42dff38 /eit.c
parent8ab980e1d9be404a8842fad54aa9c2e34fa6f4ea (diff)
downloadvdr-patch-lnbsharing-d072cc6da2e109d0dc6b98375a1bab3a2ac83948.tar.gz
vdr-patch-lnbsharing-d072cc6da2e109d0dc6b98375a1bab3a2ac83948.tar.bz2
Version 1.2.0pre1vdr-1.2.0pre1
- Some corrections to the French OSD texts (thanks to Olivier Jacques). - Fixed some missing commas in i18n.c (thanks to Dimitrios Dimitrakos for reporting this problem). - Some corrections to the Finnish OSD texts (thanks to Niko Tarnanen and Rolf Ahrenberg). - Completed the Italian OSD texts (thanks to Antonio Ospite). - Fixed breaking off replay in case the user hits "Play" or "Pause" too soon after going into "Pause live video" mode (thanks to Karim Afifi for reporting ths one). - Some corrections to the Catalanian OSD texts (thanks to Jordi VilĂ ). - Single event timers are now deleted if the recording they are doing is deleted before the timer ends. - Fixed an uninitialized variable in cDisplayChannel (thanks to Stefan Huelswitt). - Fixed a possible access of invalid file handles in cSIProcessor::Action() (thanks to Stefan Huelswitt).
Diffstat (limited to 'eit.c')
-rw-r--r--eit.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/eit.c b/eit.c
index a5b14e7..99eb405 100644
--- a/eit.c
+++ b/eit.c
@@ -16,7 +16,7 @@
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
- * $Id: eit.c 1.78 2003/05/18 14:10:25 kls Exp $
+ * $Id: eit.c 1.79 2003/05/29 15:04:10 kls Exp $
***************************************************************************/
#include "eit.h"
@@ -1236,10 +1236,17 @@ void cSIProcessor::Action()
// wait until data becomes ready from the bitfilter
if (poll(pfd, NumUsedFilters, 1000) != 0)
{
- for (int a = 0; a < NumUsedFilters ; a++)
+ for (int aa = 0; aa < NumUsedFilters; aa++)
{
- if (pfd[a].revents & POLLIN)
+ if (pfd[aa].revents & POLLIN)
{
+ int a;
+ for (a = 0; a < MAX_FILTERS; a++) {
+ if (pfd[aa].fd == filters[a].handle)
+ break;
+ }
+ if (a >= MAX_FILTERS || !filters[a].inuse) // filter no longer available
+ continue;
// read section
unsigned char buf[4096]; // max. allowed size for any EIT section
int r = safe_read(filters[a].handle, buf, sizeof(buf));