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 Structure

pointer to a place of a #GstStructure to take

newstr Structure

a new #GstStructure

Return Value

Type: bool

%TRUE if @newstr was different from @oldstr_ptr

Meta

Since

1.18