ObjectWrap.replace

Atomically modifies a pointer to point to a new object. The reference count of oldobj is decreased and the reference count of newobj is increased.

Either newobj and the value pointed to by oldobj may be null.

class ObjectWrap
static
bool
replace

Parameters

oldobj gst.object.ObjectWrap

pointer to a place of a #GstObject to replace

newobj gst.object.ObjectWrap

a new #GstObject

Return Value

Type: bool

true if newobj was different from oldobj