summaryrefslogtreecommitdiff
path: root/sdt.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2015-01-04 14:37:36 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2015-01-04 14:37:36 +0100
commit761fb103b710db225eefa195dfd6f4387319b117 (patch)
treef5f081e77ce2796642a197c17bed4e88e22bdc58 /sdt.c
parentafc17c1168f4eae489d0f728568898f07e72aeea (diff)
downloadvdr-761fb103b710db225eefa195dfd6f4387319b117.tar.gz
vdr-761fb103b710db225eefa195dfd6f4387319b117.tar.bz2
Channels that are not listed in the SDT are now only marked as OBSOLETE if"Setup/DVB/Update channels" is set to a value other than "no" or "PIDs only"
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 7537cfc1..4e6748d8 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 3.3 2014/03/10 14:42:20 kls Exp $
+ * $Id: sdt.c 3.4 2015/01/04 14:33:35 kls Exp $
*/
#include "sdt.h"
@@ -152,7 +152,9 @@ void cSdtFilter::Process(u_short Pid, u_char Tid, const u_char *Data, int Length
delete LinkChannels;
}
}
- if (sdt.getSectionNumber() == sdt.getLastSectionNumber())
- Channels.MarkObsoleteChannels(source, sdt.getOriginalNetworkId(), sdt.getTransportStreamId());
+ if (sdt.getSectionNumber() == sdt.getLastSectionNumber()) {
+ if (Setup.UpdateChannels == 1 || Setup.UpdateChannels >= 3)
+ Channels.MarkObsoleteChannels(Source(), sdt.getOriginalNetworkId(), sdt.getTransportStreamId());
+ }
Channels.Unlock();
}