mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-27 18:50:48 +00:00
58013b4b21
TLDR: Make `gst_set_threshold_from_string ("", TRUE)` reset *all* threshold settings, including those set by previous invocations of `gst_debug_set_threshold_from_string`. The docs say: @reset: %TRUE to clear all previously-set debug levels before setting new thresholds What actually happens is it sets the default threshold to `ERROR`, leaves the patterns in place and calls `gst_debug_category_reset_threshold` on each category. In effect, any category that is matched by a pattern gets reset to that threshold if the app changed it by directly invoking `gst_debug_category_set_threshold`. All other categories are reset to `ERROR`. In my opinion this parameter currently has little value, as the same effect can be achieved by including `ERROR` (without a pattern) in the string, as in `"foo*:WARNING,*bar:INFO,ERROR"`. What I actually expect it to do is reset *all* threshold settings, including those set by previous invocations of `gst_debug_set_threshold_from_string`, starting off with a clean slate for the patterns provided with the call. Otherwise there is no API to do this, besides: - Painfully removing patterns one-by-one via `gst_debug_unset_threshold_for_name` *if* you know what the patterns are. - Adding a `*:FOO` pattern to affect all categories, which makes the default threshold useless and practically leaks all the old patterns. In my opinion this also makes it fit better into the layers of threshold config, which is: 1. Temporary: - `gst_debug_category_set_threshold` - `gst_debug_category_reset_threshold` 2. Patterns: - `gst_debug_set_threshold_for_name` - `gst_debug_unset_threshold_for_name` - `gst_debug_set_threshold_from_string` - `GST_DEBUG` 3. Default: - `gst_debug_set_default_threshold` Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/605> |
||
---|---|---|
.. | ||
gst-devtools | ||
gst-docs | ||
gst-editing-services | ||
gst-examples | ||
gst-integration-testsuites | ||
gst-libav | ||
gst-omx | ||
gst-plugins-bad | ||
gst-plugins-base | ||
gst-plugins-good | ||
gst-plugins-ugly | ||
gst-python | ||
gst-rtsp-server | ||
gstreamer | ||
gstreamer-sharp | ||
gstreamer-vaapi | ||
macos-bison-binary | ||
packagefiles/pango-1.48.11 | ||
win-flex-bison-binaries | ||
win-nasm | ||
avtp.wrap | ||
bindinator.wrap | ||
cairo.wrap | ||
dav1d.wrap | ||
dssim.wrap | ||
dv.wrap | ||
expat.wrap | ||
fdk-aac.wrap | ||
FFmpeg.wrap | ||
fontconfig.wrap | ||
freetype2.wrap | ||
fribidi.wrap | ||
gl-headers.wrap | ||
glib-networking.wrap | ||
glib.wrap | ||
graphene.wrap | ||
gst-plugins-rs.wrap | ||
gtk-sharp.wrap | ||
harfbuzz.wrap | ||
json-glib.wrap | ||
lame.wrap | ||
libdrm.wrap | ||
libffi.wrap | ||
libjpeg-turbo.wrap | ||
libmicrodns.wrap | ||
libnice.wrap | ||
libopenjp2.wrap | ||
libpng.wrap | ||
libpsl.wrap | ||
libsoup.wrap | ||
libwpe.wrap | ||
libxml2.wrap | ||
ogg.wrap | ||
openh264.wrap | ||
opus.wrap | ||
orc.wrap | ||
pango.wrap | ||
pixman.wrap | ||
proxy-libintl.wrap | ||
pycairo.wrap | ||
pygobject.wrap | ||
sqlite3.wrap | ||
vorbis.wrap | ||
webrtc-audio-processing.wrap | ||
wpebackend-fdo.wrap | ||
x264.wrap | ||
zlib.wrap |