summaryrefslogtreecommitdiff
path: root/sdt.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2006-04-15 14:18:25 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2006-04-15 14:18:25 +0200
commit94c729a6fa45370e3b02c48db4d212b60026a4ad (patch)
tree49cbd9e168d3d6f4d7589e293f67e2402fc5c8fc /sdt.c
parent50b77a6d4b6d71cc97fffb5f9a9486cc9320df42 (diff)
downloadvdr-94c729a6fa45370e3b02c48db4d212b60026a4ad.tar.gz
vdr-94c729a6fa45370e3b02c48db4d212b60026a4ad.tar.bz2
The "Update channels" parameter in the "Setup/DVB" menu has been extended to allow updating only the PIDs
Diffstat (limited to 'sdt.c')
-rw-r--r--sdt.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sdt.c b/sdt.c
index 74c55032..f42b0855 100644
--- a/sdt.c
+++ b/sdt.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: sdt.c 1.15 2005/08/27 09:27:47 kls Exp $
+ * $Id: sdt.c 1.16 2006/04/15 14:12:21 kls Exp $
*/
#include "sdt.h"
@@ -78,7 +78,7 @@ void cSdtFilter::Process(u_short Pid, u_char Tid, const u_char *Data, int Length
char *pp = compactspace(ProviderNameBuf);
if (channel) {
channel->SetId(sdt.getOriginalNetworkId(), sdt.getTransportStreamId(), SiSdtService.getServiceId());
- if (Setup.UpdateChannels >= 1)
+ if (Setup.UpdateChannels == 1 || Setup.UpdateChannels >= 3)
channel->SetName(pn, ps, pp);
// Using SiSdtService.getFreeCaMode() is no good, because some
// tv stations set this flag even for non-encrypted channels :-(
@@ -86,7 +86,7 @@ void cSdtFilter::Process(u_short Pid, u_char Tid, const u_char *Data, int Length
// and would have been overwritten with real CA values later:
// channel->SetCa(SiSdtService.getFreeCaMode() ? 0xFFFF : 0);
}
- else if (*pn && Setup.UpdateChannels >= 3) {
+ else if (*pn && Setup.UpdateChannels >= 4) {
channel = Channels.NewChannel(Channel(), pn, ps, pp, sdt.getOriginalNetworkId(), sdt.getTransportStreamId(), SiSdtService.getServiceId());
patFilter->Trigger();
}
@@ -111,7 +111,7 @@ void cSdtFilter::Process(u_short Pid, u_char Tid, const u_char *Data, int Length
SI::NVODReferenceDescriptor::Service Service;
for (SI::Loop::Iterator it; nrd->serviceLoop.getNext(Service, it); ) {
cChannel *link = Channels.GetByChannelID(tChannelID(Source(), Service.getOriginalNetworkId(), Service.getTransportStream(), Service.getServiceId()));
- if (!link && Setup.UpdateChannels >= 3) {
+ if (!link && Setup.UpdateChannels >= 4) {
link = Channels.NewChannel(Channel(), "NVOD", "", "", Service.getOriginalNetworkId(), Service.getTransportStream(), Service.getServiceId());
patFilter->Trigger();
}