The handle is still owned by the GstMemory and cannot be used beyond the lifetime of this GstMemory unless it is being passed to DRM driver, which does handle a refcount internally.
drmDumbMemoryGetHandle
fn
uint drmDumbMemoryGetHandle(gst.memory.Memory mem)Return the DRM buffer object handle associated with mem.
Parameters
mem | the memory to get the handle from |
Returns
the DRM buffer object handle associated with the memory, or 0.