ObjectGst.setParent

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

class ObjectGst
bool
setParent

Parameters

parent ObjectGst

new parent of object

Return Value

Type: bool

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.