Message.replace

Modifies a pointer to a GstMessage to point to a different GstMessage. 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 message is unreffed, the new one is reffed). Either new_message or the GstMessage pointed to by old_message may be NULL.

class Message
static
int
replace

Parameters

oldMessage Message

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

newMessage Message

pointer to a GstMessage that will replace the message pointed to by old_message. [allow-none][transfer none]

Return Value

Type: int

TRUE if new_message was different from old_message

Meta