baseparse: Segment events are not necessarily a discontinuity
@thaytan
Submitted by Jan Schmidt Link to original bug (#797162)
Description
For a long time (since 0.10.12) baseparse has drained/discared any incomplete packets on a NEW_SEGMENT (now SEGMENT) event and triggered a discont on the next buffer, but in 1.x the semantics of segments changed and segment events don't necessarily imply the data stream is discontinuous now.
Baseparse should instead only rely on a DISCONT flag on the next buffer to trigger that behaviour.