Event.replace

Modifies a pointer to a GstEvent to point to a different GstEvent. 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 event is unreffed, the new one is reffed). Either new_event or the GstEvent pointed to by old_event may be NULL.

class Event
static
int
replace

Parameters

oldEvent Event

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

newEvent Event

pointer to a GstEvent that will replace the event pointed to by old_event. [allow-none][transfer none]

Return Value

Type: int

TRUE if new_event was different from old_event

Meta