summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2002-03-10 12:45:58 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2002-03-10 12:45:58 +0100
commitf9a3885ef2d21cef30180f2a90a0a305981a27c6 (patch)
tree068fc60123196fdb2ac15c4304b7520bae96e18f /config.c
parent550c79e411a3e9237cb357bb4dab45cc3b7d5d0f (diff)
downloadvdr-f9a3885ef2d21cef30180f2a90a0a305981a27c6.tar.gz
vdr-f9a3885ef2d21cef30180f2a90a0a305981a27c6.tar.bz2
New Setup parameter TrustedTransponder
Diffstat (limited to 'config.c')
-rw-r--r--config.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/config.c b/config.c
index ad22d95c..4bed561e 100644
--- a/config.c
+++ b/config.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: config.c 1.89 2002/03/08 14:57:08 kls Exp $
+ * $Id: config.c 1.90 2002/03/10 12:22:25 kls Exp $
*/
#include "config.h"
@@ -811,7 +811,7 @@ cChannel *cChannels::GetByNumber(int Number)
{
cChannel *channel = (cChannel *)First();
while (channel) {
- if (channel->number == Number)
+ if (!channel->groupSep && channel->number == Number)
return channel;
channel = (cChannel *)channel->Next();
}
@@ -822,7 +822,7 @@ cChannel *cChannels::GetByServiceID(unsigned short ServiceId)
{
cChannel *channel = (cChannel *)First();
while (channel) {
- if (channel->pnr == ServiceId)
+ if (!channel->groupSep && channel->pnr == ServiceId)
return channel;
channel = (cChannel *)channel->Next();
}
@@ -931,6 +931,7 @@ cSetup::cSetup(void)
LnbFrequHi = 10600;
DiSEqC = 0;
SetSystemTime = 0;
+ TrustedTransponder = 0;
MarginStart = 2;
MarginStop = 10;
EPGScanTimeout = 5;
@@ -1017,6 +1018,7 @@ bool cSetup::Parse(char *s)
else if (!strcasecmp(Name, "LnbFrequHi")) LnbFrequHi = atoi(Value);
else if (!strcasecmp(Name, "DiSEqC")) DiSEqC = atoi(Value);
else if (!strcasecmp(Name, "SetSystemTime")) SetSystemTime = atoi(Value);
+ else if (!strcasecmp(Name, "TrustedTransponder")) TrustedTransponder = atoi(Value);
else if (!strcasecmp(Name, "MarginStart")) MarginStart = atoi(Value);
else if (!strcasecmp(Name, "MarginStop")) MarginStop = atoi(Value);
else if (!strcasecmp(Name, "EPGScanTimeout")) EPGScanTimeout = atoi(Value);
@@ -1098,6 +1100,7 @@ bool cSetup::Save(const char *FileName)
fprintf(f, "LnbFrequHi = %d\n", LnbFrequHi);
fprintf(f, "DiSEqC = %d\n", DiSEqC);
fprintf(f, "SetSystemTime = %d\n", SetSystemTime);
+ fprintf(f, "TrustedTransponder = %d\n", TrustedTransponder);
fprintf(f, "MarginStart = %d\n", MarginStart);
fprintf(f, "MarginStop = %d\n", MarginStop);
fprintf(f, "EPGScanTimeout = %d\n", EPGScanTimeout);