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

Thomas Vander Stichele thomas at apestaart.org
Tue Feb 24 13:39:10 CET 2004


On Tue, 2004-02-24 at 21:57, David Schleef wrote:
> 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.

I'm assuming you're talking about our gstreamer support libraries.  I
was actually talking about libraries that use GStreamer instead, and
thus aren't registered with gst-register.

AFAICT there's no easy way to do this correctly.

Thomas



Dave/Dina : future TV today ! - http://www.davedina.org/
<-*- thomas (dot) apestaart (dot) org -*->
Please put me somewhere near the sea
With one carrion angel waiting for me
who'll be holding my heart in it's hand
But most of all I'd like to go with a friend
<-*- thomas (at) apestaart (dot) org -*->
URGent, best radio on the net - 24/7 ! - http://urgent.fm/






More information about the gstreamer-devel mailing list