replace

function replace(oldobj:Gst.Object, newobj:Gst.Object):Boolean {
    // Gjs wrapper for gst_object_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.

oldobj

pointer to a place of a Gst.Object to replace

newobj

a new Gst.Object

Returns

TRUE if newobj was different from oldobj