diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2012-01-08 09:27:59 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2012-01-08 09:27:59 +0100 |
commit | e197b04e4db7c01e977d9dd4caccbbfe3cfc564f (patch) | |
tree | 886dea9df055811d2fe0c1454ef9b3e8838c9767 /nit.c | |
parent | 76b6ae2cabc3806369f222ce4f8d95beb692a2f3 (diff) | |
download | vdr-e197b04e4db7c01e977d9dd4caccbbfe3cfc564f.tar.gz vdr-e197b04e4db7c01e977d9dd4caccbbfe3cfc564f.tar.bz2 |
Added support for devices with more than one delivery system per frontend
Diffstat (limited to 'nit.c')
-rw-r--r-- | nit.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: nit.c 2.6 2011/08/12 14:27:31 kls Exp $ + * $Id: nit.c 2.7 2012/01/06 12:45:39 kls Exp $ */ #include "nit.h" @@ -16,6 +16,9 @@ #include "libsi/descriptor.h" #include "tools.h" +#define DVB_SYSTEM_1 0 // see also dvbdevice.c +#define DVB_SYSTEM_2 1 + cNitFilter::cNitFilter(void) { numNits = 0; @@ -134,7 +137,7 @@ void cNitFilter::Process(u_short Pid, u_char Tid, const u_char *Data, int Length dtp.SetCoderateH(CodeRates[sd->getFecInner()]); static int Modulations[] = { QAM_AUTO, QPSK, PSK_8, QAM_16 }; dtp.SetModulation(Modulations[sd->getModulationType()]); - dtp.SetSystem(sd->getModulationSystem() ? SYS_DVBS2 : SYS_DVBS); + dtp.SetSystem(sd->getModulationSystem() ? DVB_SYSTEM_2 : DVB_SYSTEM_1); static int RollOffs[] = { ROLLOFF_35, ROLLOFF_25, ROLLOFF_20, ROLLOFF_AUTO }; dtp.SetRollOff(sd->getModulationSystem() ? RollOffs[sd->getRollOff()] : ROLLOFF_AUTO); int SymbolRate = BCD2INT(sd->getSymbolRate()) / 10; |