} // NewSegmentInfo private void DetectVersionChange(DvbStpHeader header, SegmentInfo info) { if (header.SegmentVersion == info.SegmentIdentity.Version) { return; } foreach (var segment in Segments.Values) { segment.AdjustRound(-1); } // foreach var oldVersion = info.SegmentIdentity.Version; var wasComplete = (info.Round > 0); info.Reset(header); if (SegmentVersionChanged != null) { SegmentVersionChanged(oldVersion, info.SegmentIdentity, wasComplete); } // if } // DetectVersionChange