Context.replace

Modifies a pointer to a GstContext to point to a different GstContext. 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 context is unreffed, the new one is reffed). Either new_context or the GstContext pointed to by old_context may be NULL.

class Context
static
int
replace

Parameters

oldContext Context

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

newContext Context

pointer to a GstContext that will replace the context pointed to by old_context. [allow-none][transfer none]

Return Value

Type: int

TRUE if new_context was different from old_context

Meta