ParentBufferMeta

The #GstParentBufferMeta is a #GstMeta which can be attached to a #GstBuffer to hold a reference to another buffer that is only released when the child #GstBuffer is released.

Typically, #GstParentBufferMeta is used when the child buffer is directly using the #GstMemory of the parent buffer, and wants to prevent the parent buffer from being returned to a buffer pool until the #GstMemory is available for re-use.

Constructors

this
this(GstParentBufferMeta* gstParentBufferMeta, bool ownedRef)

Sets our main struct and passes it to the parent class.

Destructor

~this
~this()
Undocumented in source.

Members

Functions

getParentBufferMetaStruct
GstParentBufferMeta* getParentBufferMetaStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

Properties

buffer
Buffer buffer [@property getter]
Buffer buffer [@property setter]

the #GstBuffer on which a reference is being held.

parent
GstMeta parent [@property getter]
GstMeta parent [@property setter]

the parent #GstMeta structure

Static functions

getInfo
GstMetaInfo* getInfo()

Get the global #GstMetaInfo describing the #GstParentBufferMeta meta.

getType
GType getType()

Variables

gstParentBufferMeta
GstParentBufferMeta* gstParentBufferMeta;

the main Gtk struct

ownedRef
bool ownedRef;
Undocumented in source.

Meta