Gst.Pad.prototype.set_active
function set_active(active:Boolean):Boolean { // Gjs wrapper for gst_pad_set_active() }
Activates or deactivates the given pad. Normally called from within core state change functions.
If active, makes sure the pad is active. If it is already active, either in push or pull mode, just return. Otherwise dispatches to the pad's activate function to perform the actual activation.
If not active, calls Gst.Pad.prototype.activate_mode with the pad's current mode and a FALSE argument.
- active
whether or not the pad should be active.
- Returns
#TRUE if the operation was successful. MT safe.