mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
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: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2734>
This commit is contained in:
parent
7aeb2f6711
commit
dfea5070df
1 changed files with 2 additions and 0 deletions
|
@ -2126,6 +2126,8 @@ parse_debug_level (gchar * str, GstDebugLevel * level)
|
||||||
} else {
|
} else {
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
} else if (strcmp (str, "NONE") == 0) {
|
||||||
|
*level = GST_LEVEL_NONE;
|
||||||
} else if (strcmp (str, "ERROR") == 0) {
|
} else if (strcmp (str, "ERROR") == 0) {
|
||||||
*level = GST_LEVEL_ERROR;
|
*level = GST_LEVEL_ERROR;
|
||||||
} else if (strncmp (str, "WARN", 4) == 0) {
|
} else if (strncmp (str, "WARN", 4) == 0) {
|
||||||
|
|
Loading…
Reference in a new issue