Removes pad from element. pad will be destroyed if it has not been referenced elsewhere using gst_object_unparent().

This function is used by plugin developers and should not be used by applications. Pads that were dynamically requested from elements with Element.requestPad should be released with the Element.releaseRequestPad function instead.

Pads are not automatically deactivated so elements should perform the needed steps to deactivate the pad in case this pad is removed in the PAUSED or PLAYING state. See Pad.setActive for more information about deactivating pads.

The pad and the element should be unlocked when calling this function.

This function will emit the pad-removed signal on the element.

class Element


pad Pad

the gstreamer.Pad to remove from the element.

Return Value

Type: bool

TRUE if the pad could be removed. Can return FALSE if the pad does not belong to the provided element.

MT safe.