baseparse: Ensure seqnum consistency
authorEdward Hervey <edward@centricular.com>
Tue, 5 Jun 2018 15:02:18 +0000 (17:02 +0200)
committerEdward Hervey <bilboed@bilboed.com>
Tue, 5 Jun 2018 15:02:18 +0000 (17:02 +0200)
commitd34f0460294b1e2eb762c4e5898e63c21152b399
tree3e53566ec8ee8b9f53a5565061e58792efbe91ff
parent52d4ae7680b407206f9b7c3b0b356cb28b8d344e
baseparse: Ensure seqnum consistency

We need all relevant events of a segment to have consistent seqnum:
* GST_EVENT_SEGMENT
* GST_EVENT_EOS

If we are push-based and create a new segment, use the same seqnum
as the upstream event.

If we are pull-based, use the seqnum of that newly created segment
event everywhere
libs/gst/base/gstbaseparse.c