basesrc: preserve seqnum on segments after seeks
authorThiago Santos <thiago.sousa.santos@collabora.com>
Wed, 4 Sep 2013 18:28:10 +0000 (15:28 -0300)
committerThiago Santos <thiago.sousa.santos@collabora.com>
Thu, 5 Sep 2013 18:40:04 +0000 (15:40 -0300)
commit3dc8ee97e50039c73fc322f687741a5b7193b750
tree6f7374f5373b6ddb2de9c9c010f9c36713751571
parentd1d99af22973dd379d95fa477097576275ec1394
basesrc: preserve seqnum on segments after seeks

The seqnum of the segment after a seek should be the same of
the seek event. Downstream elements might rely on seqnums to
identify events related to a seek.

This is particularly important when a demuxer maps a TIME seek
into a BYTES seek for upstream and it needs to identify the
corresponding segment event and map it back into TIME to push
downstream, possibly using the values from the original seek
event.

https://bugzilla.gnome.org/show_bug.cgi?id=707530
libs/gst/base/gstbasesrc.c