Caps.replace

Modifies a pointer to a GstCaps to point to a different GstCaps. The modification is done atomically (so this is useful for ensuring thread safety in some cases), and the reference counts are updated appropriately (the old caps is unreffed, the new is reffed). Either ncaps or the GstCaps pointed to by ocaps may be NULL.

class Caps
static
int
replace

Parameters

oldCaps GstCaps**

pointer to a pointer to a GstCaps to be replaced. inout[transfer full]

newCaps Caps

pointer to a GstCaps that will replace the caps pointed to by ocaps. [transfer none][allow-none]

Return Value

Type: int

TRUE if new_caps was different from old_caps

Meta