bufferpool: Add method and virtuals to set flushing state
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Fri, 23 May 2014 19:26:59 +0000 (15:26 -0400)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Mon, 26 May 2014 17:31:21 +0000 (13:31 -0400)
commit103a40b6ce91497c2821da9738ceac882b060ece
treed7841f4249119d34f4da2ddd92126356fc31bfc0
parent70b38dd9375f747bd8a9218c14a00631553ba792
bufferpool: Add method and virtuals to set flushing state

Currently there is no other way to unlock a buffer pool other then
stopping it. This may have the effect of freeing all the buffers,
which is too heavy for a seek. This patch add a method to enter and
leave flushing state. As a convenience, flush_start/flush_stop
virtual are added so pool implementation can also unblock their own
internal poll atomically with the rest of the pool.  This is fully
backward compatible with doing stop/start to actually flush the pool
(as being done in GstBaseSrc).

https://bugzilla.gnome.org/show_bug.cgi?id=727611
docs/gst/gstreamer-sections.txt
gst/gstbufferpool.c
gst/gstbufferpool.h
tests/check/gst/gstbufferpool.c
win32/common/libgstreamer.def