Structure.take

Atomically modifies a pointer to point to a new structure. The #GstStructure oldstr_ptr is pointing to is freed and newstr is taken ownership over.

Either newstr and the value pointed to by oldstr_ptr may be null.

It is a programming error if both newstr and the value pointed to by oldstr_ptr refer to the same, non-null structure.

class Structure
static
bool
take

Parameters

oldstrPtr gst.structure.Structure

pointer to a place of a #GstStructure to take

newstr gst.structure.Structure

a new #GstStructure

Return Value

Type: bool

true if newstr was different from oldstr_ptr