summaryrefslogtreecommitdiff
path: root/filter.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2004-01-10 10:03:58 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2004-01-10 10:03:58 +0100
commit37a73ed5b463300ffd2b5d8d78f3a635ce510a82 (patch)
tree659afe73c54b099791307b5843373c57ef02d57b /filter.c
parent732387379d1ba334693064965ae4d0652493f8b8 (diff)
downloadvdr-37a73ed5b463300ffd2b5d8d78f3a635ce510a82.tar.gz
vdr-37a73ed5b463300ffd2b5d8d78f3a635ce510a82.tar.bz2
Fixed testing for matching section filters in case they are turned off
Diffstat (limited to 'filter.c')
-rw-r--r--filter.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/filter.c b/filter.c
index 56054d36..ec5f6c04 100644
--- a/filter.c
+++ b/filter.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: filter.c 1.2 2004/01/05 14:30:00 kls Exp $
+ * $Id: filter.c 1.3 2004/01/10 10:02:06 kls Exp $
*/
#include "filter.h"
@@ -120,10 +120,12 @@ void cFilter::SetStatus(bool On)
bool cFilter::Matches(u_short Pid, u_char Tid)
{
- for (cFilterData *fd = data.First(); fd; fd = data.Next(fd)) {
- if (fd->Matches(Pid, Tid))
- return true;
- }
+ if (on) {
+ for (cFilterData *fd = data.First(); fd; fd = data.Next(fd)) {
+ if (fd->Matches(Pid, Tid))
+ return true;
+ }
+ }
return false;
}