1
0
mirror of https://github.com/VDR4Arch/vdr.git synced 2023-10-10 13:36:52 +02:00

Fixed setting the source type for newly detected terrestrial transponders

This commit is contained in:
Klaus Schmidinger 2004-01-18 16:34:25 +01:00
parent 833a89289b
commit a3d995547f
3 changed files with 6 additions and 2 deletions

View File

@ -916,3 +916,5 @@ Stephan Epstein <s.epstein@vinzenz.com>
Christian Tramnitz <maillist@tramnitz.com> Christian Tramnitz <maillist@tramnitz.com>
for pointing out a problem with wrong parameter settings when scanning NITs for pointing out a problem with wrong parameter settings when scanning NITs
for terrestrial transponders for terrestrial transponders
for his support in debugging a problem in setting the source type for newly
detected terrestrial transponders

View File

@ -2608,3 +2608,5 @@ Video Disk Recorder Revision History
use them (thanks to Marcel Wiesweg). use them (thanks to Marcel Wiesweg).
- Now only processing NITs that contain the transponder they are actually - Now only processing NITs that contain the transponder they are actually
broadcast on. broadcast on.
- Fixed setting the source type for newly detected terrestrial transponders
(thanks to Christian Tramnitz for his support in debugging this).

4
nit.c
View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and * See the main source file 'vdr.c' for copyright information and
* how to reach the author. * how to reach the author.
* *
* $Id: nit.c 1.4 2004/01/18 16:31:08 kls Exp $ * $Id: nit.c 1.5 2004/01/18 16:32:45 kls Exp $
*/ */
#include "nit.h" #include "nit.h"
@ -167,7 +167,7 @@ void cNitFilter::Process(u_short Pid, u_char Tid, const u_char *Data, int Length
break; break;
case SI::TerrestrialDeliverySystemDescriptorTag: { case SI::TerrestrialDeliverySystemDescriptorTag: {
SI::TerrestrialDeliverySystemDescriptor *sd = (SI::TerrestrialDeliverySystemDescriptor *)d; SI::TerrestrialDeliverySystemDescriptor *sd = (SI::TerrestrialDeliverySystemDescriptor *)d;
int Source = cSource::FromData(cSource::stCable); int Source = cSource::FromData(cSource::stTerr);
int Frequency = sd->getFrequency() * 10; int Frequency = sd->getFrequency() * 10;
static int Bandwidths[] = { BANDWIDTH_8_MHZ, BANDWIDTH_7_MHZ, BANDWIDTH_6_MHZ, BANDWIDTH_AUTO, BANDWIDTH_AUTO, BANDWIDTH_AUTO, BANDWIDTH_AUTO, BANDWIDTH_AUTO }; static int Bandwidths[] = { BANDWIDTH_8_MHZ, BANDWIDTH_7_MHZ, BANDWIDTH_6_MHZ, BANDWIDTH_AUTO, BANDWIDTH_AUTO, BANDWIDTH_AUTO, BANDWIDTH_AUTO, BANDWIDTH_AUTO };
int Bandwidth = Bandwidths[sd->getBandwidth()]; int Bandwidth = Bandwidths[sd->getBandwidth()];