private void processSections(Collection <Mpeg2Section> sections) { foreach (Mpeg2Section section in sections) { if (RunParameters.Instance.TraceIDs.Contains("FREESATSECTIONS")) { Logger.Instance.Dump("FreeSat Section", section.Data, section.Length); } try { Mpeg2ExtendedHeader mpeg2Header = new Mpeg2ExtendedHeader(); mpeg2Header.Process(section.Data); if (mpeg2Header.Current) { FreeSatSection freeSatSection = new FreeSatSection(); freeSatSection.Process(section.Data, mpeg2Header); } } catch (ArgumentOutOfRangeException e) { Logger.Instance.Write("<e> FreeSat error: " + e.Message); } } }
private void processSections(Collection<Mpeg2Section> sections) { foreach (Mpeg2Section section in sections) { if (RunParameters.Instance.TraceIDs.Contains("FREESATSECTIONS")) Logger.Instance.Dump("FreeSat Section", section.Data, section.Length); try { Mpeg2ExtendedHeader mpeg2Header = new Mpeg2ExtendedHeader(); mpeg2Header.Process(section.Data); if (mpeg2Header.Current) { FreeSatSection freeSatSection = new FreeSatSection(); freeSatSection.Process(section.Data, mpeg2Header); } } catch (ArgumentOutOfRangeException e) { Logger.Instance.Write("<e> FreeSat error: " + e.Message); } } }