GNOME Bugzilla – Bug 681153
[0.11] default acquire_buffer function from GstBufferPool blocks forever
Last modified: 2012-08-10 10:27:22 UTC
When a buffer pool using the default acquire_function is configured with max_buffers > 0, two bugs can happen: - when min_buffers is 0, acquire_buffer will not try to allocate any buffer, and will wait forever. - when min_buffers > 0, acquire_buffer will not try to allocate any more buffers after min_buffers are allocated, instead of trying to allocate up to max_buffers.
commit fb78756679e76bc8fed4da7104a8b695562747e7 Author: Wim Taymans <wim.taymans@collabora.co.uk> Date: Fri Aug 10 12:23:03 2012 +0200 bufferpool: fix max_buffers handling When max_buffers > 0 and the pool is empty, actually try to allocate more buffers up to the max_buffers limit. We need to add a counter for this to count how many buffers we allocated and check this against the max_buffers limit. Reorganise and clean up some code. Fixes https://bugzilla.gnome.org/show_bug.cgi?id=681153