bufferpool: memory management cleanups
authorWim Taymans <wim.taymans@collabora.co.uk>
Mon, 21 Feb 2011 11:18:41 +0000 (12:18 +0100)
committerWim Taymans <wim.taymans@collabora.co.uk>
Wed, 2 Mar 2011 10:23:21 +0000 (11:23 +0100)
commit419a01af0fe59ff8ceed5dcd16544ae6cd16699a
treecccc5efbcf924cf2d704d90727a36bc4bff4d999
parent1dff415d8a2dc01e9e3420273c92b6b67d692d2e
bufferpool: memory management cleanups

Use a lock to protect concurrect execution of set_config and set_active.
Start freeing the buffers when flushing and all buffers are returned to the
pool.
Make a copy of the config to avoid crashing with concurrent access.
gst/gstbufferpool.c
gst/gstbufferpool.h