MMap buffer management

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

MMap buffer management

vaishnavi
Hi,
I'm developing an plugin for a driver that uses mmap. I have 1024 mmap buffers wic are reusable in my plugin. I wan to push out this mmap buffer and then get back the reference for it to free it up for reuse.I'm able to push it out,by increasing the reference count and pointing the mmap pointer in gstbuffer data pointer, then pushing. Since the mmap buffer gets reused,the buffer pushed out the data of the latest contents instead of the contents at the time of pushing.

I'm not knowing how to work around this problem..

Thank you