<div dir="ltr">Hello, <div><br></div><div>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:  </div><div><br></div><div>Should I unref the buffer at the end of the render function or is it automatically unreffed when the render function returns ? <br></div><div><br></div><div>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.</div><div><br></div><div>Is the memory in GstMapInfo is contiguous? Does gst_buffer_map implies a   memory copy operation  ?</div><div><br></div><div>Thanks for your answers. Regards, </div><div><br></div><div>Ivan </div><div><br></div><div><br></div></div><div dir="ltr">-- <br></div><div dir="ltr">Iván Aponte<div>+58 412 2774713</div></div>