private void processSections(Collection <Mpeg2Section> sections) { foreach (Mpeg2Section section in sections) { if (RunParameters.Instance.TraceIDs.Contains("DISHNETWORKSECTIONS")) { Logger.Instance.Dump("Dish Network Section", section.Data, section.Length); } try { Mpeg2ExtendedHeader mpeg2Header = new Mpeg2ExtendedHeader(); mpeg2Header.Process(section.Data); if (mpeg2Header.Current) { if (mpeg2Header.TableID > 0x80 && mpeg2Header.TableID < 0xa5) { DishNetworkSection dishNetworkSection = new DishNetworkSection(); dishNetworkSection.Process(section.Data, mpeg2Header); } } } catch (ArgumentOutOfRangeException e) { Logger.Instance.Write("<e> Dish Network error: " + e.Message); } } }
private void processSections(Collection<Mpeg2Section> sections) { foreach (Mpeg2Section section in sections) { if (RunParameters.Instance.TraceIDs.Contains("DISHNETWORKSECTIONS")) Logger.Instance.Dump("Dish Network Section", section.Data, section.Length); try { Mpeg2ExtendedHeader mpeg2Header = new Mpeg2ExtendedHeader(); mpeg2Header.Process(section.Data); if (mpeg2Header.Current) { if (mpeg2Header.TableID > 0x80 && mpeg2Header.TableID < 0xa5) { DishNetworkSection dishNetworkSection = new DishNetworkSection(); dishNetworkSection.Process(section.Data, mpeg2Header); } } } catch (ArgumentOutOfRangeException e) { Logger.Instance.Write("<e> Dish Network error: " + e.Message); } } }