Gst.Element.prototype.set_locked_state

function set_locked_state(locked_state:Boolean):Boolean {
    // Gjs wrapper for gst_element_set_locked_state()
}

Locks the state of an element, so state changes of the parent don't affect this element anymore.

MT safe.

locked_state

TRUE to lock the element's state

Returns

TRUE if the state was changed, FALSE if bad parameters were given or the elements state-locking needed no change.