summaryrefslogtreecommitdiff
path: root/pat.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2004-01-05 12:08:09 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2004-01-05 12:08:09 +0100
commit6096500940b17b92ac6be82007daf22e055e041e (patch)
tree77ca9993f9e726497c9bd271b0079106423e57a8 /pat.c
parenteab7806f2018eeed66d4cfb2151c069237206cd4 (diff)
downloadvdr-6096500940b17b92ac6be82007daf22e055e041e.tar.gz
vdr-6096500940b17b92ac6be82007daf22e055e041e.tar.bz2
Added 'Update channels' setup parameter
Diffstat (limited to 'pat.c')
-rw-r--r--pat.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/pat.c b/pat.c
index 3fa6848c..312e2f15 100644
--- a/pat.c
+++ b/pat.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: pat.c 1.3 2004/01/04 12:27:06 kls Exp $
+ * $Id: pat.c 1.4 2004/01/05 11:42:30 kls Exp $
*/
#include "pat.h"
@@ -368,9 +368,11 @@ void cPatFilter::Process(u_short Pid, u_char Tid, const u_char *Data, int Length
delete d;
}
}
- Channel->SetPids(Vpid, Ppid, Apids[0], Apids[1], Dpids[0], Dpids[1], Tpid);
- Channel->SetCaIds(CaDescriptors->CaIds());
- Channel->SetCaDescriptors(CaDescriptorHandler.AddCaDescriptors(CaDescriptors));
+ if (Setup.UpdateChannels >= 2) {
+ Channel->SetPids(Vpid, Ppid, Apids[0], Apids[1], Dpids[0], Dpids[1], Tpid);
+ Channel->SetCaIds(CaDescriptors->CaIds());
+ Channel->SetCaDescriptors(CaDescriptorHandler.AddCaDescriptors(CaDescriptors));
+ }
}
lastPmtScan = 0; // this triggers the next scan
Channels.Unlock();