diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2004-01-10 10:03:58 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2004-01-10 10:03:58 +0100 |
commit | 37a73ed5b463300ffd2b5d8d78f3a635ce510a82 (patch) | |
tree | 659afe73c54b099791307b5843373c57ef02d57b /filter.c | |
parent | 732387379d1ba334693064965ae4d0652493f8b8 (diff) | |
download | vdr-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.c | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -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; } |