2005-03-22 11:32:59 +00:00
|
|
|
Messages
|
|
|
|
--------
|
|
|
|
|
|
|
|
Messages are refcounted lightweight objects to signal the application
|
|
|
|
of pipeline events.
|
|
|
|
|
2005-08-27 10:57:00 +00:00
|
|
|
Messages are implemented as a subclass of GstMiniObject with a generic
|
2005-04-21 09:37:34 +00:00
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
|
|
Message types
|
|
|
|
-------------
|
|
|
|
|
|
|
|
GST_MESSAGE_EOS:
|
|
|
|
|
2005-11-03 14:22:44 +00:00
|
|
|
Posted by sink elements. This message is posted to the application when
|
|
|
|
all the sinks in a pipeline posted an EOS message. When performing a seek,
|
|
|
|
the EOS state of the pipeline and sinks is undone.
|
2005-04-21 09:37:34 +00:00
|
|
|
|
|
|
|
GST_MESSAGE_ERROR:
|
|
|
|
|
|
|
|
An element in the pipeline got into an error state. The message carries
|
|
|
|
a GError and a debug string describing the error. This usually means that
|
|
|
|
part of the pipeline is not streaming anymore.
|
|
|
|
|
|
|
|
GST_MESSAGE_WARNING:
|
|
|
|
|
|
|
|
An element in the pipeline encountered a condition that made it produce a
|
|
|
|
warning. This could be a recoverable decoding error or some other non fatal
|
|
|
|
event. The pipeline continues streaming after a warning.
|
|
|
|
|
|
|
|
GST_MESSAGE_INFO:
|
|
|
|
|
|
|
|
An element produced an informational message.
|
|
|
|
|
|
|
|
GST_MESSAGE_TAG:
|
|
|
|
|
|
|
|
An element decoded metadata about the stream. The message carries a GstTagList
|
|
|
|
with the tag information.
|
|
|
|
|
|
|
|
GST_MESSAGE_BUFFERING:
|
|
|
|
|
2006-03-13 10:32:26 +00:00
|
|
|
An element is buffering data and that could potentially take some time. This
|
|
|
|
message is typically emited by elements that perform some sort of network
|
|
|
|
buffering. While the pipeline is buffering it should remain in the PAUSED
|
|
|
|
state. When the buffering is finished, it can resume PLAYING.
|
2005-04-21 09:37:34 +00:00
|
|
|
|
|
|
|
GST_MESSAGE_STATE_CHANGED:
|
|
|
|
|
2005-10-08 16:49:15 +00:00
|
|
|
An element changed state in the pipeline. The message carries the old, new
|
|
|
|
and pending state of the element.
|
2005-04-21 09:37:34 +00:00
|
|
|
|
|
|
|
GST_MESSAGE_STEP_DONE:
|
|
|
|
|
|
|
|
An element stepping frames has finished.
|
|
|
|
|
2005-10-08 16:49:15 +00:00
|
|
|
GST_MESSAGE_CLOCK_PROVIDE:
|
|
|
|
|
|
|
|
An element notifies it capability of providing a clock for the pipeline.
|
|
|
|
|
|
|
|
GST_MESSAGE_CLOCK_LOST:
|
|
|
|
|
|
|
|
The current clock as selected by the pipeline became unusable. The pipeline
|
|
|
|
will select a new clock on the next PLAYING state change.
|
|
|
|
|
2005-04-21 09:37:34 +00:00
|
|
|
GST_MESSAGE_NEW_CLOCK:
|
|
|
|
|
|
|
|
A new clock was selected for the pipeline.
|
|
|
|
|
|
|
|
GST_MESSAGE_STRUCTURE_CHANGE:
|
|
|
|
|
|
|
|
The pipeline changed of structure, This means elements were added or removed or
|
|
|
|
pads were linked or unlinked.
|
|
|
|
|
|
|
|
GST_MESSAGE_STREAM_STATUS:
|
|
|
|
|
2005-11-03 14:22:44 +00:00
|
|
|
An element posted information about the stream it is handling. This could include
|
|
|
|
information about the length of the stream.
|
2005-04-21 09:37:34 +00:00
|
|
|
|
|
|
|
GST_MESSAGE_APPLICATION:
|
|
|
|
|
2005-10-08 16:49:15 +00:00
|
|
|
The application posted a message.
|
|
|
|
|
|
|
|
GST_MESSAGE_ELEMENT:
|
|
|
|
|
|
|
|
Element-specific message, see the specific element's documentation
|
2005-04-21 09:37:34 +00:00
|
|
|
|
2005-09-24 14:14:03 +00:00
|
|
|
GST_MESSAGE_SEGMENT_START:
|
|
|
|
|
|
|
|
An element started playback of a new segment. This message is not forwarded
|
2005-10-08 16:49:15 +00:00
|
|
|
the the application but is used internally to schedule SEGMENT_DONE messages.
|
2005-09-24 14:14:03 +00:00
|
|
|
|
|
|
|
GST_MESSAGE_SEGMENT_DONE:
|
|
|
|
|
|
|
|
An element or bin completed playback of a segment. This message is only posted
|
|
|
|
on the bus if a SEGMENT seek is performed on a pipeline.
|
|
|
|
|
|
|
|
|