summaryrefslogtreecommitdiff
path: root/sdt.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2004-01-05 12:08:09 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2004-01-05 12:08:09 +0100
commit6096500940b17b92ac6be82007daf22e055e041e (patch)
tree77ca9993f9e726497c9bd271b0079106423e57a8 /sdt.c
parenteab7806f2018eeed66d4cfb2151c069237206cd4 (diff)
downloadvdr-6096500940b17b92ac6be82007daf22e055e041e.tar.gz
vdr-6096500940b17b92ac6be82007daf22e055e041e.tar.bz2
Added 'Update channels' setup parameter
Diffstat (limited to 'sdt.c')
-rw-r--r--sdt.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sdt.c b/sdt.c
index a4e91b80..9ede48dd 100644
--- a/sdt.c
+++ b/sdt.c
@@ -4,11 +4,12 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: sdt.c 1.1 2004/01/04 11:54:42 kls Exp $
+ * $Id: sdt.c 1.2 2004/01/05 11:40:24 kls Exp $
*/
#include "sdt.h"
#include "channels.h"
+#include "config.h"
#include "libsi/section.h"
#include "libsi/descriptor.h"
@@ -80,14 +81,15 @@ cSDT::cSDT(int Source, int Transponder, uchar &lastSdtVersion, cPatFilter *PatFi
}
if (Channel) {
Channel->SetId(getOriginalNetworkId(), getTransportStreamId(), SiSdtService.getServiceId());
- Channel->SetName(pn);
+ if (Setup.UpdateChannels >= 1)
+ Channel->SetName(pn);
// Using SiSdtService.getFreeCaMode() is no good, because some
// tv stations set this flag even for non-encrypted channels :-(
// The special value 0xFFFF was supposed to mean "unknown encryption"
// and would have been overwritten with real CA values later:
// Channel->SetCa(SiSdtService.getFreeCaMode() ? 0xFFFF : 0);
}
- else if (*pn) {
+ else if (*pn && Setup.UpdateChannels >= 3) {
Channel = Channels.NewChannel(Source, Transponder, pn, getOriginalNetworkId(), getTransportStreamId(), SiSdtService.getServiceId());
PatFilter->Trigger();
}