MT safe.
Pad.setActive
bool setActive(bool 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.Pad.activateMode] with the pad's current mode and a false argument.
Parameters
active | whether or not the pad should be active. |
Returns
true if the operation was successful.