Buffer destruction at sink

Iván Aponte ivan.aponte at gmail.com
Sun Mar 20 01:53:58 UTC 2016


Hello,

I am programming  a sink plugin which basically gets the memory from a
buffer, maps it to the gpu (since we have zerocopy available) and executes
a cuda kernel. I am using the basesink class as a base for my sink.   I
have some questions:

Should I unref the buffer at the end of the render function or is it
automatically unreffed when the render function returns ?

Why  gst_buffer_ref is potentially a memory copy operation? is this true
even if it is in the render function of basesink ? I just don't want the
memory to get freed.

Is the memory in GstMapInfo is contiguous? Does gst_buffer_map implies a
memory copy operation  ?

Thanks for your answers. Regards,

Ivan


-- 
Iván Aponte
+58 412 2774713
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160320/c6a1989a/attachment.html>


More information about the gstreamer-devel mailing list