summaryrefslogtreecommitdiff
path: root/eit.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2002-03-10 12:45:58 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2002-03-10 12:45:58 +0100
commitf9a3885ef2d21cef30180f2a90a0a305981a27c6 (patch)
tree068fc60123196fdb2ac15c4304b7520bae96e18f /eit.c
parent550c79e411a3e9237cb357bb4dab45cc3b7d5d0f (diff)
downloadvdr-f9a3885ef2d21cef30180f2a90a0a305981a27c6.tar.gz
vdr-f9a3885ef2d21cef30180f2a90a0a305981a27c6.tar.bz2
New Setup parameter TrustedTransponder
Diffstat (limited to 'eit.c')
-rw-r--r--eit.c19
1 files changed, 8 insertions, 11 deletions
diff --git a/eit.c b/eit.c
index 9985fbbd..e0b33f69 100644
--- a/eit.c
+++ b/eit.c
@@ -16,7 +16,7 @@
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
- * $Id: eit.c 1.39 2002/03/01 16:32:11 kls Exp $
+ * $Id: eit.c 1.40 2002/03/10 12:45:38 kls Exp $
***************************************************************************/
#include "eit.h"
@@ -981,7 +981,6 @@ cSIProcessor::cSIProcessor(const char *FileName)
{
fileName = strdup(FileName);
masterSIProcessor = numSIProcessors == 0; // the first one becomes the 'master'
- useTStime = false;
filters = NULL;
if (!numSIProcessors++) // the first one creates it
schedules = new cSchedules;
@@ -1138,7 +1137,7 @@ void cSIProcessor::Action()
case 0x14:
if (buf[0] == 0x70)
{
- if (useTStime)
+ if (Setup.SetSystemTime && Setup.TrustedTransponder && ISTRANSPONDER(currentTransponder, Setup.TrustedTransponder))
{
cTDT ctdt((tdt_t *)buf);
ctdt.SetSystemTime();
@@ -1222,14 +1221,6 @@ bool cSIProcessor::AddFilter(u_char pid, u_char tid)
return false;
}
-/** set whether local systems time should be
-set by the received TDT or TOT packets */
-bool cSIProcessor::SetUseTSTime(bool use)
-{
- useTStime = use;
- return useTStime;
-}
-
/** */
bool cSIProcessor::ShutDownFilters(void)
{
@@ -1247,6 +1238,12 @@ bool cSIProcessor::ShutDownFilters(void)
}
/** */
+void cSIProcessor::SetCurrentTransponder(int CurrentTransponder)
+{
+ currentTransponder = CurrentTransponder;
+}
+
+/** */
bool cSIProcessor::SetCurrentServiceID(unsigned short servid)
{
cMutexLock MutexLock(&schedulesMutex);