GstMessage vs GstEvent.

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

GstMessage vs GstEvent.

wl2776
Administrator
What is the difference between GstMessage and GstEvent?
The C structs, describing them, differ only in one field.
Am I right in thinking that they are basically the same thing and only difference in them is that the messages are used to communicate between the playbin and application, and processed in g_main_loop, while events are for communications between elements, and processed in their thread context?
Reply | Threaded
Open this post in threaded view
|

Re: GstMessage vs GstEvent.

Tim-Philipp Müller-2
On Mon, 2010-04-05 at 06:12 -0800, wl2776 wrote:

> What is the difference between GstMessage and GstEvent?
> The C structs, describing them, differ only in one field.
> Am I right in thinking that they are basically the same thing and only
> difference in them is that the messages are used to communicate between the
> playbin and application, and processed in g_main_loop, while events are for
> communications between elements, and processed in their thread context?

That's roughly right. Pretty picture here:

http://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/section-intro-basics-communication.html

For more in-depth information, see the design docs.

Cheers
 -Tim


------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel