diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2004-10-16 10:14:19 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2004-10-16 10:14:19 +0200 |
commit | ac13b6e161eb7dac3ff3fb14c50d2bec4187f2d1 (patch) | |
tree | cd1bb297d3ca0fae6dfbfb5059d7c8fa84f490c0 /nit.c | |
parent | 6415cc900de3361925d22f879077be687fce3858 (diff) | |
download | vdr-ac13b6e161eb7dac3ff3fb14c50d2bec4187f2d1.tar.gz vdr-ac13b6e161eb7dac3ff3fb14c50d2bec4187f2d1.tar.bz2 |
Fixed a possible crash with inconsistent SI data
Diffstat (limited to 'nit.c')
-rw-r--r-- | nit.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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()) { |