Pad.getAllowedCaps

gst.caps.Caps getAllowedCaps()

Gets the capabilities of the allowed media types that can flow through pad and its peer.

The allowed capabilities is calculated as the intersection of the results of calling [gst.pad.Pad.queryCaps] on pad and its peer. The caller owns a reference on the resulting caps.

Returns

the allowed #GstCaps of the

pad link. Unref the caps when you no longer need it. This function returns null when pad has no peer.

MT safe.