basesrc: preserve seqnum of eos events sent by the user
authorThiago Santos <ts.santos@sisa.samsung.com>
Thu, 23 Jan 2014 18:52:51 +0000 (15:52 -0300)
committerThiago Santos <ts.santos@sisa.samsung.com>
Fri, 24 Jan 2014 12:31:44 +0000 (09:31 -0300)
commitfdfc6dc98385816fa3a3765841f40e6c73af58d3
tree3e96c8fa6b0f1891b5a94934d0c1af520974ca84
parent5880c9c4c38911bced21854383a5b836d2875f71
basesrc: preserve seqnum of eos events sent by the user

Store the eos event seqnum and use it when creating the
new eos event to be pushed downstream. To know if the eos
was caused by the eos events received on send_event, a
'forced_eos' flag is used to use the correct seqnum on
the event pushed downstream.

Useful if the application wants to check if the EOS message
was generated from its own pushed EOS or from another source
(stream really finished).

Also adds a test for this

https://bugzilla.gnome.org/show_bug.cgi?id=722791
libs/gst/base/gstbasesrc.c
tests/check/libs/basesrc.c