baseparse: push pending events before GAP event
authorThiago Santos <ts.santos@sisa.samsung.com>
Thu, 2 Jan 2014 16:43:54 +0000 (13:43 -0300)
committerThiago Santos <ts.santos@sisa.samsung.com>
Thu, 2 Jan 2014 19:38:40 +0000 (16:38 -0300)
commitaccaadf52ac7cdb9c30383d70a9418bc258fd35d
tree2ca0de2aac58a694db630993ee2d6fd408d3fdc0
parentd917eb7160d0043db970d4d599a32020c69ae63c
baseparse: push pending events before GAP event

A GAP event is handled as an empty buffer by sinks and they expect
to receive start up events before GAP events (like a segment).

This is important specially if there is a GAP at the beginning of
a stream (before any buffers) so that the segment event can be
pushed downstream before the GAP

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