bufferpool: is it possible wait all memory writalbe, nor free the buffer?
Nicolas Dufresne
nicolas.dufresne at collabora.com
Sat Jan 10 06:49:09 PST 2015
Le 2015-01-09 21:06, Bing Song a écrit :
> Another method is manage the memory in allocator. Not free it when allocator_free. Re-use it when allocator_allocate. But the allocator_allocate will blocked until the memory freed to allocator. Don't know how to handle flushing for the block. No chance to get another buffer which returned to buffer pool when blocked on allocator_allocate.
If you go this way (alloctor that blocks), your allocator will have to
be internal, I think this won't be a problem, You'll need custom method
to flush, but this is simple now, you should have to chain
flush_start/flush_stop from the pool.
Nicolas
More information about the gstreamer-devel
mailing list