bufferpool: is it possible wait all memory writalbe, nor free the buffer?

Bing Song Kevin.Song at freescale.com
Fri Jan 9 08:33:17 PST 2015


Our expection of video buffer pool is reuse memory. Is it possible only release buffer to buffer pool when memory refer count is zero? Nor buffer ref count is zero.

Regards,
Song Bing.

-----Original Message-----
From: gstreamer-devel [mailto:gstreamer-devel-bounces at lists.freedesktop.org] On Behalf Of Nicolas Dufresne
Sent: Friday, January 09, 2015 10:38 PM
To: gstreamer-devel at lists.freedesktop.org
Subject: Re: bufferpool: is it possible wait all memory writalbe, nor free the buffer?


Le 2015-01-09 04:50, Sebastian Dröge a écrit :
>> >I know the methods can fix my issue. But free and allocate buffer in video buffer pool isn't expect behave in some use case. Is it valuable to implement the feature in gstbufferpool.c?
> If you find a way how to implement that in a generic way, sure:)

That could be a way to solve the case where we discard buffers after
gst_buffer_make_writable() is called. A simpler plausible solution I had in mind, was to hook original buffer life time to the new buffer (in the case the memory are just reffed). I have not done any test of this.

Nicolas
_______________________________________________
gstreamer-devel mailing list
gstreamer-devel at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


More information about the gstreamer-devel mailing list