diff options
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; } |