From a728a7df4918f2f865c26c2194cfde874e28bc60 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Tue, 13 Jun 2017 17:11:40 -0400 Subject: [PATCH] validate: Fix the way we check if _CONFIG is a list of structures --- validate/gst/validate/validate.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/validate/gst/validate/validate.c b/validate/gst/validate/validate.c index 1df8813..63969c0 100644 --- a/validate/gst/validate/validate.c +++ b/validate/gst/validate/validate.c @@ -122,7 +122,7 @@ gst_structure_validate_name (const gchar * name) g_return_val_if_fail (name != NULL, FALSE); if (G_UNLIKELY (!g_ascii_isalpha (*name))) { - GST_WARNING ("Invalid character '%c' at offset 0 in structure name: %s", + GST_INFO ("Invalid character '%c' at offset 0 in structure name: %s", *name, name); return FALSE; } @@ -131,8 +131,11 @@ gst_structure_validate_name (const gchar * name) s = &name[1]; while (*s && (g_ascii_isalnum (*s) || strchr ("/-_.:+", *s) != NULL)) s++; + if (*s == ',') + return TRUE; + if (G_UNLIKELY (*s != '\0')) { - GST_WARNING ("Invalid character '%c' at offset %" G_GUINTPTR_FORMAT " in" + GST_INFO ("Invalid character '%c' at offset %" G_GUINTPTR_FORMAT " in" " structure name: %s", *s, ((guintptr) s - (guintptr) name), name); return FALSE; } -- 2.7.4