From dfea5070dfae3f65a8ae071bb293fc530932446e Mon Sep 17 00:00:00 2001 From: "Jan Alexander Steffens (heftig)" Date: Fri, 8 Jul 2022 16:37:51 +0200 Subject: [PATCH] gstinfo: Parse "NONE" as a valid level name This allows using `NONE` in `GST_DEBUG`, `gst_debug_set_threshold_from_string`, etc. It was accessible before, but only via the integer `0`. Part-of: --- subprojects/gstreamer/gst/gstinfo.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/subprojects/gstreamer/gst/gstinfo.c b/subprojects/gstreamer/gst/gstinfo.c index 248d49d5bf..0ed428ded1 100644 --- a/subprojects/gstreamer/gst/gstinfo.c +++ b/subprojects/gstreamer/gst/gstinfo.c @@ -2126,6 +2126,8 @@ parse_debug_level (gchar * str, GstDebugLevel * level) } else { return FALSE; } + } else if (strcmp (str, "NONE") == 0) { + *level = GST_LEVEL_NONE; } else if (strcmp (str, "ERROR") == 0) { *level = GST_LEVEL_ERROR; } else if (strncmp (str, "WARN", 4) == 0) {