Message.newElement

Create a new element-specific message. This is meant as a generic way of allowing one-way communication from an element to an application, for example "the firewire cable was unplugged". The format of the message should be documented in the element's documentation. The structure field can be NULL. MT safe.

class Message
static
newElement

Parameters

src ObjectGst

The object originating the message.

structure Structure

The structure for the message. The message will take ownership of the structure.

Return Value

Type: Message

The new element message.