[gst-devel] question re: debugging categories in libraries

David Schleef ds at schleef.org
Tue Feb 24 13:02:02 CET 2004


On Tue, Feb 24, 2004 at 01:18:05PM +0100, Thomas Vander Stichele wrote:
> Hi,
> 
> general question that I'm wondering about wrt libraries using GStreamer
> adding debugging categories.
> 
> * libraries could do a gst_library_init () method that sets up the
> debugging category, among other things
> 
> * --gst-debug-help is parsed through gst_init.  
> 
> * it is customary to have apps run gst_library_init () after gst_init ()
> 
> * this means there is no way for a lib to initialize debug categories
> before gst_init is called, *unless* we do something ugly like pre_init
> and post_init.

If libraries want to show up in --gst-debug-help, they should
register their category in their _init() or other constructor
function.  I recently fixed a bug in debugging related to this.



dave...





More information about the gstreamer-devel mailing list