MiniObject.take

Modifies a pointer to point to a new mini-object. The modification is done atomically. This version is similar to gst_mini_object_replace() except that it does not increase the refcount of newdata and thus takes ownership of newdata. Either newdata and the value pointed to by olddata may be NULL.

class MiniObject
static
int
take

Parameters

olddata GstMiniObject**

pointer to a pointer to a mini-object to be replaced. inout[transfer full]

newdata MiniObject

pointer to new mini-object

Return Value

Type: int

TRUE if newdata was different from olddata

Meta