[Bug 772921] New: debug log categories can not be filtered for

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Fri Oct 14 08:12:25 UTC 2016


https://bugzilla.gnome.org/show_bug.cgi?id=772921

            Bug ID: 772921
           Summary: debug log categories can not be filtered for
    Classification: Platform
           Product: GStreamer
           Version: git master
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gst-plugins-base
          Assignee: gstreamer-bugs at lists.freedesktop.org
          Reporter: ensonic at sonicpulse.de
        QA Contact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---

In the base libs we lazily create debug log categories:
https://cgit.freedesktop.org/gstreamer/gst-plugins-base/tree/gst-libs/gst/audio/audio.c#n35

The downside of this is that e.g.
GST_DEBUG="audio:5" won't work, but GST_DEBUG="audio*:5" works (although it
will show too much).

Some options I can see is to try to re-eval the filter expr, when a new cat is
registered. From gstinfo.c: _priv_gst_debug_init()
  env = g_getenv ("GST_DEBUG");
  if (env) {
    gst_debug_set_threshold_from_string (env, FALSE);
  }

Or we use library constructors. This would need some work to make it cross
platform though.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list