streamsynchronizer: Send GAP event to finish preroll when change state from PLAYING...
authorSong Bing <b06498@freescale.com>
Mon, 12 Jan 2015 08:08:33 +0000 (16:08 +0800)
committerSebastian Dröge <sebastian@centricular.com>
Mon, 16 Feb 2015 12:09:43 +0000 (14:09 +0200)
commit9f81931716b7f8fd29862f0bfa1a3891cb414bdc
treeb22ba4d1834e26ed71bd268b543cc748e908a9ea
parent11c126363fa662e3bef94356d8a97b04c946e92e
streamsynchronizer: Send GAP event to finish preroll when change state from PLAYING to PAUSED

Wait in the event function when EOS is received until all pads are EOS
and then forward the EOS event from each pads own event function.

Also send a new GAP event for EOS pads from the event function whenever
going from PLAYING->PAUSED by shortly waking up the GCond. This is needed
to allow sinks to pre-roll again, as they did not receive EOS yet because
we blocked that, but also will never get data again.

https://bugzilla.gnome.org/show_bug.cgi?id=736655
gst/playback/gststreamsynchronizer.c
gst/playback/gststreamsynchronizer.h