Gst.Object.prototype.set_parent

function set_parent(parent:Gst.Object):Boolean {
    // Gjs wrapper for gst_object_set_parent()
}

Sets the parent of object to parent. The object's reference count will be incremented, and any floating reference will be removed (see Gst.ref_sink).

parent

new parent of object

Returns

TRUE if parent could be set or FALSE when object already had a parent or object and parent are the same. MT safe. Grabs and releases object's LOCK.