diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2004-10-16 13:47:37 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2004-10-16 13:47:37 +0200 |
commit | d7482c8fed54652a3150d78b35419dc8c832f074 (patch) | |
tree | 2a07a2095a18cf4a32b158f8108ee0e89133a4df /sections.c | |
parent | b60120161a69e689a39d89c608265faa52785285 (diff) | |
download | vdr-d7482c8fed54652a3150d78b35419dc8c832f074.tar.gz vdr-d7482c8fed54652a3150d78b35419dc8c832f074.tar.bz2 |
Avoiding unnecessary section filter start/stops
Diffstat (limited to 'sections.c')
-rw-r--r-- | sections.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: sections.c 1.8 2004/08/08 13:59:08 kls Exp $ + * $Id: sections.c 1.9 2004/10/16 13:45:02 kls Exp $ */ #include "sections.h" @@ -121,7 +121,8 @@ void cSectionHandler::Attach(cFilter *Filter) statusCount++; filters.Add(Filter); Filter->sectionHandler = this; - Filter->SetStatus(true); + if (on) + Filter->SetStatus(true); Unlock(); } @@ -176,6 +177,7 @@ void cSectionHandler::Action(void) int i = fh->Index(); pfd[i].fd = fh->handle; pfd[i].events = POLLIN; + pfd[i].revents = 0; } int oldStatusCount = statusCount; Unlock(); |