After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 587417 - allow getting log categories
allow getting log categories
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
git master
Other Linux
: Normal enhancement
: 0.10.23
Assigned To: Stefan Sauer (gstreamer, gtkdoc dev)
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2009-06-30 11:56 UTC by Stefan Sauer (gstreamer, gtkdoc dev)
Modified: 2009-07-06 23:23 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
allow getting other log categories (4.50 KB, patch)
2009-06-30 11:58 UTC, Stefan Sauer (gstreamer, gtkdoc dev)
committed Details | Review
xvimagesink: use core performance log category (1.40 KB, patch)
2009-06-30 14:24 UTC, Stefan Sauer (gstreamer, gtkdoc dev)
committed Details | Review

Description Stefan Sauer (gstreamer, gtkdoc dev) 2009-06-30 11:56:25 UTC
Patch adds a new macro GST_DEBUG_CATEGORY_GET to get a log category by name. This
allows plugins to use e.g. core categories like PERFORMANCE or CLOCK.
Comment 1 Stefan Sauer (gstreamer, gtkdoc dev) 2009-06-30 11:58:29 UTC
Created attachment 137612 [details] [review]
allow getting other log categories
Comment 2 Stefan Sauer (gstreamer, gtkdoc dev) 2009-06-30 14:24:34 UTC
Created attachment 137626 [details] [review]
xvimagesink: use core performance log category
Comment 3 Stefan Sauer (gstreamer, gtkdoc dev) 2009-07-06 18:59:32 UTC
commit 2cb16ad7aa773c7b1415cd599524727ad874c4b8
Author: Stefan Kost <ensonic@users.sf.net>
Date:   Tue Jun 30 11:26:34 2009 +0300

    info: allow getting other log categories. Fixes #587417
    
    Add a new macro GST_DEBUG_CATEGORY_GET to get a log category by name. This
    allows plugins to use e.g. core categories like PERFORMANCE or CLOCK.
    API: GST_DEBUG_CATEGORY_GET

commit 8e5a0000dc905e20e99bc2ab99868c5f1a072ed8
Author: Stefan Kost <ensonic@users.sf.net>
Date:   Tue Jun 30 17:19:50 2009 +0300

    xvimagesink: use core performance log category

Comment 4 David Schleef 2009-07-06 22:50:09 UTC
Wouldn't it be better to just export the categories we intend plugins/apps to use?
Comment 5 Stefan Sauer (gstreamer, gtkdoc dev) 2009-07-06 23:23:52 UTC
I belive accessing variables accross libraries is not portable. Or do you mean limitting which log categories can be looked up?
It's a debug helper after all, if someone misusses it and does lookups of other plugins log-categories and that breaks one day, its not our fault.