Pad.setCaps

Sets the capabilities of this pad. The caps must be fixed. Any previous caps on the pad will be unreffed. This function refs the caps so you should unref if as soon as you don't need it anymore. It is possible to set NULL caps, which will make the pad unnegotiated again.

class Pad
int
setCaps

Parameters

caps Caps

a GstCaps to set.

Return Value

Type: int

TRUE if the caps could be set. FALSE if the caps were not fixed or bad parameters were provided to this function. MT safe.

Meta