*
* GStreamer's debugging subsystem is an easy way to get information about what
* the application is doing.
- * It is not meant for programming errors. Use GLibs methods (g_warning and so
- * on for that.
+ * It is not meant for programming errors. Use GLib methods (g_warning and
+ * friends) for that.
*
- * The debugging subsystem works only after GStreamer has been initilized
+ * The debugging subsystem works only after GStreamer has been initialized
* - for example by calling gst_init().
*
* The debugging subsystem is used to log informational messages while the
* application runs.
* Each messages has some properties attached to it. Among these properties
- * are the debugging category, the severity (called "level" here) and an obtional
+ * are the debugging category, the severity (called "level" here) and an
+ * optional
* #GObject it belongs to. Each of these messages is sent to all registered
* debugging handlers, which then handle the messages. GStreamer attaches a
* default handler on startup, which outputs requested messages to stderr.
* #GST_CAT_ERROR_OBJECT or similar. These all expand to calling gst_debug_log()
* with the right parameters.
* The only thing a developer will probably want to do is define his own
- * categories. This is easily done with 3 lines. At the top of your code, declare
+ * categories. This is easily done with 3 lines. At the top of your code,
+ * declare
* the variables and set the default category.
* <informalexample>
* <programlisting>
- * GST_DEBUG_CATEGORY (my_category); // define category
+ * GST_DEBUG_CATEGORY (my_category); // define category
* &hash;define GST_CAT_DEFAULT my_category // set as default
* </programlisting>
* </informalexample>
* After that you only need to initialize the category.
* <informalexample>
* <programlisting>
- * GST_DEBUG_CATEGORY_INIT (my_category, "my category", 0, "This is my very own");
+ * GST_DEBUG_CATEGORY_INIT (my_category, "my category",
+ * 0, "This is my very own");
* </programlisting>
* </informalexample>
- * Initialization must be done before the category is used first. Plugins do this
+ * Initialization must be done before the category is used first.
+ * Plugins do this
* in their plugin_init function, libraries and applications should do that
* during their initialization.
*
* The whole debugging subsystem can be disabled at build time with passing the
- * --disable-gst-debug switch to configure. If this is done, every function, macro
- * and even structs described in this file evaluate to default values or nothing
+ * --disable-gst-debug switch to configure. If this is done, every function,
+ * macro
+ * and even structs described in this file evaluate to default values or
+ * nothing
* at all. So don't take addresses of these functions or use other tricks.
- * If you must do that for some reason, there is still an option. If the debugging
- * subsystem was compiled out, #GST_DISABLE_GST_DEBUG is defined in <gst/gst.h>,
+ * If you must do that for some reason, there is still an option.
+ * If the debugging
+ * subsystem was compiled out, #GST_DISABLE_GST_DEBUG is defined in
+ * <gst/gst.h>,
* so you can check that before doing your trick.
* Disabling the debugging subsystem will give you a slight (read: unnoticable)
* speed increase and will reduce the size of your compiled code. The GStreamer
GstDebugCategory *GST_CAT_SCHEDULING = NULL;
GstDebugCategory *GST_CAT_BUFFER = NULL;
+GstDebugCategory *GST_CAT_BUS = NULL;
GstDebugCategory *GST_CAT_CAPS = NULL;
GstDebugCategory *GST_CAT_CLOCK = NULL;
GstDebugCategory *GST_CAT_ELEMENT_PADS = NULL;
GST_CAT_SCHEDULING = _gst_debug_category_new ("GST_SCHEDULING",
GST_DEBUG_BOLD | GST_DEBUG_FG_MAGENTA, NULL);
GST_CAT_BUFFER = _gst_debug_category_new ("GST_BUFFER",
- GST_DEBUG_BOLD | GST_DEBUG_FG_GREEN, NULL);
+ GST_DEBUG_BOLD | GST_DEBUG_BG_GREEN, NULL);
+ GST_CAT_BUS = _gst_debug_category_new ("GST_BUS", GST_DEBUG_BG_YELLOW, NULL);
GST_CAT_CAPS = _gst_debug_category_new ("GST_CAPS",
GST_DEBUG_BOLD | GST_DEBUG_FG_BLUE, NULL);
GST_CAT_CLOCK = _gst_debug_category_new ("GST_CLOCK",
g_get_current_time (&now);
elapsed = GST_TIMEVAL_TO_TIME (now) - start_time;
g_printerr ("%s (%p - %" GST_TIME_FORMAT
- ") %s%15s%s(%s%5d%s) %s%s(%d):%s:%s%s %s\n",
+ ") %s%20s%s(%s%5d%s) %s%s(%d):%s:%s%s %s\n",
gst_debug_level_get_name (level), g_thread_self (),
GST_TIME_ARGS (elapsed), color,
gst_debug_category_get_name (category), clear, pidcolor, pid, clear,