From ac13b6e161eb7dac3ff3fb14c50d2bec4187f2d1 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sat, 16 Oct 2004 10:14:19 +0200 Subject: Fixed a possible crash with inconsistent SI data --- nit.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'nit.c') diff --git a/nit.c b/nit.c index c515c240..494d561d 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 1.8 2004/06/06 14:24:49 kls Exp $ + * $Id: nit.c 1.9 2004/10/16 10:00:27 kls Exp $ */ #include "nit.h" @@ -92,8 +92,8 @@ void cNitFilter::Process(u_short Pid, u_char Tid, const u_char *Data, int Length return; if (!Channels.Lock(true, 10)) return; - for (SI::Loop::Iterator it; nit.transportStreamLoop.hasNext(it); ) { - SI::NIT::TransportStream ts = nit.transportStreamLoop.getNext(it); + SI::NIT::TransportStream ts; + for (SI::Loop::Iterator it; nit.transportStreamLoop.getNext(ts, it); ) { SI::Descriptor *d; for (SI::Loop::Iterator it2; (d = ts.transportStreamDescriptors.getNext(it2)); ) { switch (d->getDescriptorTag()) { -- cgit v1.2.3