diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2010-03-06 15:19:17 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2010-03-06 15:19:17 +0100 |
commit | 2f16565bc8a81be10af7bb1ba652719a8aaa9eb6 (patch) | |
tree | 1507c61c034c1ff06f835435b7a2c2ddde1ff7f7 | |
parent | d01a497a0945abd59d1bc8847eec24576c366411 (diff) | |
download | vdr-2f16565bc8a81be10af7bb1ba652719a8aaa9eb6.tar.gz vdr-2f16565bc8a81be10af7bb1ba652719a8aaa9eb6.tar.bz2 |
Fixed editing channel parameters
-rw-r--r-- | HISTORY | 1 | ||||
-rw-r--r-- | dvbdevice.c | 14 |
2 files changed, 8 insertions, 7 deletions
@@ -6394,3 +6394,4 @@ Video Disk Recorder Revision History This obsoletes the ATSC patch. - The "Source" item in the "Edit channel" menu now wraps around the list of sources (suggested by Halim Sahin). +- Fixed editing channel parameters. diff --git a/dvbdevice.c b/dvbdevice.c index be9407ac..adefba18 100644 --- a/dvbdevice.c +++ b/dvbdevice.c @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: dvbdevice.c 2.30 2010/03/06 11:07:05 kls Exp $ + * $Id: dvbdevice.c 2.31 2010/03/06 15:19:17 kls Exp $ */ #include "dvbdevice.h" @@ -576,7 +576,7 @@ void cDvbTuner::Action(void) class cDvbSourceParam : public cSourceParam { private: int param; - cChannel data; + int srate; cDvbTransponderParameters dtp; public: cDvbSourceParam(char Source, const char *Description); @@ -589,19 +589,19 @@ cDvbSourceParam::cDvbSourceParam(char Source, const char *Description) :cSourceParam(Source, Description) { param = 0; + srate = 0; } void cDvbSourceParam::SetData(cChannel *Channel) { - data = *Channel; - dtp.Parse(data.Parameters()); + srate = Channel->Srate(); + dtp.Parse(Channel->Parameters()); param = 0; } void cDvbSourceParam::GetData(cChannel *Channel) { - data.SetTransponderData(Channel->Source(), Channel->Frequency(), data.Srate(), dtp.ToString(Source()), true); - *Channel = data; + Channel->SetTransponderData(Channel->Source(), Channel->Frequency(), srate, dtp.ToString(Source()), true); } cOsdItem *cDvbSourceParam::GetOsdItem(void) @@ -612,7 +612,7 @@ cOsdItem *cDvbSourceParam::GetOsdItem(void) switch (param++) { case 0: ST(" S ") return new cMenuEditChrItem( tr("Polarization"), &dtp.polarization, "hvlr"); else return GetOsdItem(); case 1: ST(" S ") return new cMenuEditMapItem( tr("System"), &dtp.system, SystemValues); else return GetOsdItem(); - case 2: ST(" CS ") return new cMenuEditIntItem( tr("Srate"), &data.srate); else return GetOsdItem(); + case 2: ST(" CS ") return new cMenuEditIntItem( tr("Srate"), &srate); else return GetOsdItem(); case 3: ST("ACST") return new cMenuEditMapItem( tr("Inversion"), &dtp.inversion, InversionValues); else return GetOsdItem(); case 4: ST(" CST") return new cMenuEditMapItem( tr("CoderateH"), &dtp.coderateH, CoderateValues); else return GetOsdItem(); case 5: ST(" T") return new cMenuEditMapItem( tr("CoderateL"), &dtp.coderateL, CoderateValues); else return GetOsdItem(); |