Gets the parent of pad, cast to a gstreamer.Element If a pad has no parent or its parent is not an element, return NULL.

class Pad

Return Value

Type: Element

the parent of the pad. The caller has a reference on the parent, so unref when you're finished with it.

MT safe.