GstMessage

Messages are implemented as a subclass of #GstMiniObject with a generic #GstStructure as the content. This allows for writing custom messages without requiring an API change while allowing a wide range of different types of messages.

Messages are posted by objects in the pipeline and are passed to the application using the #GstBus.

The basic use pattern of posting a message on a #GstBus is as follows:

gst_bus_post (bus, gst_message_new_eos());

A #GstElement usually posts messages on the bus provided by the parent container using gst.element.Element.postMessage.

Members

Variables

cond
GCond cond;
lock
GMutex lock;
miniObject
GstMiniObject miniObject;

the parent structure

seqnum
uint seqnum;

the sequence number of the message

src
GstObject* src;

the src of the message

timestamp
ulong timestamp;

the timestamp of the message

type
GstMessageType type;

the #GstMessageType of the message