validate: Fix the way we check if _CONFIG is a list of structures
authorThibault Saunier <thibault.saunier@osg.samsung.com>
Tue, 13 Jun 2017 21:11:40 +0000 (17:11 -0400)
committerThibault Saunier <thibault.saunier@osg.samsung.com>
Fri, 16 Jun 2017 21:36:34 +0000 (17:36 -0400)
validate/gst/validate/validate.c

index 1df8813..63969c0 100644 (file)
@@ -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;
   }