summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2000-09-10 15:07:15 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2000-09-10 15:07:15 +0200
commit380b28cec803b6ba6d4bc9e999ea83e3d18859a7 (patch)
treeca47f3dc0859ed56a90edafeb6f9e65ecb3b6fed /config.c
parent5e9738d37de9760f4d4eb910ccb70093b8cc5825 (diff)
downloadvdr-380b28cec803b6ba6d4bc9e999ea83e3d18859a7.tar.gz
vdr-380b28cec803b6ba6d4bc9e999ea83e3d18859a7.tar.bz2
Removed 'preferred' field to not break channels.conf format in 0.63 release0.6.3
Diffstat (limited to 'config.c')
-rw-r--r--config.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/config.c b/config.c
index 188e8973..0a965ee5 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.21 2000/09/10 14:32:45 kls Exp $
+ * $Id: config.c 1.22 2000/09/10 15:07:15 kls Exp $
*/
#include "config.h"
@@ -196,7 +196,6 @@ cChannel::cChannel(const cChannel *Channel)
apid = Channel ? Channel->apid : 256;
ca = Channel ? Channel->ca : 0;
pnr = Channel ? Channel->pnr : 0;
- preferred = Channel ? Channel->preferred : 0;
groupSep = Channel ? Channel->groupSep : false;
}
@@ -212,7 +211,7 @@ const char *cChannel::ToText(cChannel *Channel)
if (Channel->groupSep)
asprintf(&buffer, ":%s\n", s);
else
- asprintf(&buffer, "%s:%d:%c:%d:%d:%d:%d:%d:%d:%d\n", s, Channel->frequency, Channel->polarization, Channel->diseqc, Channel->srate, Channel->vpid, Channel->apid, Channel->ca, Channel->pnr, Channel->preferred);
+ asprintf(&buffer, "%s:%d:%c:%d:%d:%d:%d:%d:%d\n", s, Channel->frequency, Channel->polarization, Channel->diseqc, Channel->srate, Channel->vpid, Channel->apid, Channel->ca, Channel->pnr);
return buffer;
}
@@ -235,15 +234,10 @@ bool cChannel::Parse(const char *s)
}
else {
groupSep = false;
- int fields = sscanf(s, "%a[^:]:%d:%c:%d:%d:%d:%d:%d:%d:%d", &buffer, &frequency, &polarization, &diseqc, &srate, &vpid, &apid, &ca, &pnr, &preferred);
-#define VER062_FIELDS 9
-#define VER063_FIELDS 10
- if (fields == VER062_FIELDS || fields == VER063_FIELDS) {
+ int fields = sscanf(s, "%a[^:]:%d:%c:%d:%d:%d:%d:%d:%d", &buffer, &frequency, &polarization, &diseqc, &srate, &vpid, &apid, &ca, &pnr);
+ if (fields == 9) {
strn0cpy(name, buffer, MaxChannelName);
delete buffer;
- if (fields == VER062_FIELDS) {
- preferred = 0;
- }
}
else
return false;