summaryrefslogtreecommitdiff
path: root/channels.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2002-11-08 14:19:22 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2002-11-08 14:19:22 +0100
commit443d9b786dc24fd96313b33d0ec080d4309c0a3c (patch)
tree291d945ad11179b07560feda162a7518e2d516db /channels.c
parent700b92e99c6db23f5e97c4faec89abf4b4fb36df (diff)
downloadvdr-443d9b786dc24fd96313b33d0ec080d4309c0a3c.tar.gz
vdr-443d9b786dc24fd96313b33d0ec080d4309c0a3c.tar.bz2
Fixed saving the polarization parameter of channels that have a number in the 'source' parameter
Diffstat (limited to 'channels.c')
-rw-r--r--channels.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/channels.c b/channels.c
index 4f1bcec3..e9fe3de6 100644
--- a/channels.c
+++ b/channels.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: channels.c 1.6 2002/11/01 10:26:45 kls Exp $
+ * $Id: channels.c 1.7 2002/11/08 13:21:16 kls Exp $
*/
#include "channels.h"
@@ -128,7 +128,7 @@ cChannel::cChannel(void)
{
*name = 0;
frequency = 0;
- source = 0;
+ source = cSource::FromString("S19.2E");
srate = 0;
vpid = 0;
apid1 = 0;
@@ -155,7 +155,7 @@ cChannel::cChannel(const cChannel *Channel)
{
strcpy(name, Channel ? Channel->name : "Pro7");
frequency = Channel ? Channel->frequency : 12480;
- source = Channel ? Channel->source : 0;
+ source = Channel ? Channel->source : cSource::FromString("S19.2E");
srate = Channel ? Channel->srate : 27500;
vpid = Channel ? Channel->vpid : 255;
apid1 = Channel ? Channel->apid1 : 256;
@@ -185,6 +185,8 @@ static int PrintParameter(char *p, char Name, int Value)
const char *cChannel::ParametersToString(void)
{
char type = *cSource::ToString(source);
+ if (isdigit(type))
+ type = 'S';
#define ST(s) if (strchr(s, type))
static char buffer[64];
char *q = buffer;