[gst-devel] GSTBUS

Tim Müller t.i.m at zen.co.uk
Sat Feb 18 02:57:01 CET 2006


On Sat, 2006-02-18 at 13:26 +0530, ved kpl wrote:

Hi Ved,

> i m quite new to gstreamer.
> i havent really understood GstBus.
> i just wanted to know the differences between gstmessages & events.
> it would be gr8 if i get a thorough explanation of this.

GstMessages are primarily used by elements/bins/pipelines to communicate
things to the application, like EOS or errors or tags. They are sent to
the application via a GstBus. The purpose of the GstBus is to provide an
easy way to marshal those messages into the main application thread.
That way, the application doesn't have to worry about all the threading
that GStreamer does internally and can just do its thing.

Events are sent upstream and downstream between elements in GStreamer
pipelines and are mostly for communication between elements, so that
when you transcode an audio file from flac to ogg/vorbis your tags are
automatically passed from the flac decoder to the vorbis encoder, for
example. 

 Cheers
  -Tim






More information about the gstreamer-devel mailing list