gstreamer logs
Tim-Philipp Müller
t.i.m at zen.co.uk
Tue Feb 19 06:42:33 PST 2013
On Tue, 2013-02-19 at 06:14 -0800, Raju wrote:
Hi,
> I am trying to understanding gstreamer log and debugging system. I found the
> following definitions in gstinfo.h file. Can anybody help me understand
> these things?
>
> GST_CAT_ERROR_OBJECT
> GST_CAT_ERROR
> GST_ERROR_OBJECT
> GST_ERROR
>
> -> What is the difference between the above 4 definitions.?
Have you looked at them? They basically do the same, just take different
arguments. e.g. GST_ERROR will pass NULL for an object and use the
default category instead of a specific category, while
GST_CAT_ERROR_OBJECT passes a specific category and an object to log
for.
> -> How can I make use of these definitions in my plugin?
Just do it. Perhaps even look at one of the many existing plugins.
> -> how can I use these definitions to dump log details?
See GST_DEBUG on
http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gst-running.html
> -> which among the 4 definitions is more useful to handle a transcoder
> pipeline ?
You would typically use LOG, DEBUG, and INFO log levels, sometimes
WARNING too, ERROR very rarely. The easiest to use is the simple GST_FOO
variant.
Cheers
-Tim
More information about the gstreamer-devel
mailing list