summaryrefslogtreecommitdiff
path: root/nit.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2014-03-11 09:32:48 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2014-03-11 09:32:48 +0100
commitba9651e86348d56f3b7e937652f78fc0fe9e86fa (patch)
treed1d2ff808c9155ebac6545e9499367cebdfdc4ea /nit.c
parentda404e00c0c95978bd2b126b6e2a6b01556630ec (diff)
downloadvdr-ba9651e86348d56f3b7e937652f78fc0fe9e86fa.tar.gz
vdr-ba9651e86348d56f3b7e937652f78fc0fe9e86fa.tar.bz2
The SDT is now only parsed *after* the NIT has been read
Diffstat (limited to 'nit.c')
-rw-r--r--nit.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/nit.c b/nit.c
index 89988618..8265f50e 100644
--- a/nit.c
+++ b/nit.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: nit.c 2.10 2013/03/07 09:42:29 kls Exp $
+ * $Id: nit.c 2.10.1.1 2014/03/11 09:29:59 kls Exp $
*/
#include "nit.h"
@@ -19,8 +19,9 @@
#define DVB_SYSTEM_1 0 // see also dvbdevice.c
#define DVB_SYSTEM_2 1
-cNitFilter::cNitFilter(void)
+cNitFilter::cNitFilter(cSdtFilter *SdtFilter)
{
+ sdtFilter = SdtFilter;
numNits = 0;
networkId = 0;
Set(0x10, 0x40); // NIT
@@ -183,6 +184,7 @@ void cNitFilter::Process(u_short Pid, u_char Tid, const u_char *Data, int Length
}
}
}
+ sdtFilter->Trigger(Source);
}
break;
case SI::S2SatelliteDeliverySystemDescriptorTag: {
@@ -253,6 +255,7 @@ void cNitFilter::Process(u_short Pid, u_char Tid, const u_char *Data, int Length
}
}
}
+ sdtFilter->Trigger(Source);
}
break;
case SI::TerrestrialDeliverySystemDescriptorTag: {
@@ -316,6 +319,7 @@ void cNitFilter::Process(u_short Pid, u_char Tid, const u_char *Data, int Length
}
}
}
+ sdtFilter->Trigger(Source);
}
break;
case SI::ExtensionDescriptorTag: {