[gst-devel] question re: debugging

Thomas Vander Stichele thomas at apestaart.org
Mon Dec 22 03:00:01 CET 2003


Hi,

have some simple questions re: debugging; I'm trying to update the
manual to document the new system.

a) Should the mapping explicitly be: one feature -> one or more
categories ? Or can I use one category for a complete plug-in (say, all
of the oss elements) I'm asking because I think that if each element
would have it's own category, the output of --gst-debug-help is going to
be pretty long.

b) In the case where one category can be used for multiple elements,
what's the best way to register categories ? Ie, where is the define,
where the DEBUG_CATEGORY_INIT, and where the registering call ?

c) Going through the code, it looks to me like having multiple _INIT
calls with the same name would result in different entries.  Should I
try to add code that makes sure a category name is registered only once
? How does code in a second element registering the same category name
"know" what variable to pass to the debugging system ?

c) Why are the core's debug categories in capitals, and the plugin's
debug categories not ? Should external libs/programs use capitals or not
?

Once I figured it out a little and added code to handle oss (so I can
debug my actual problem atm :)) I can add it to the manual and remove
the old stuff.

Thanks
Thomas

Dave/Dina : future TV today ! - http://davedina.apestaart.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