gst/gststructure.c: Allow '+' as well, it can be part of media or mime types such as image/svg+xml.

Original commit message from CVS:
* gst/gststructure.c:
Allow '+' as well, it can be part of media or mime types
such as image/svg+xml.
This commit is contained in:
Tim-Philipp Müller 2007-10-16 21:48:23 +00:00
parent 13c6e89d6c
commit 4945ceea39
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2007-10-16 Tim-Philipp Müller <tim at centricular dot net>
* gst/gststructure.c:
Allow '+' as well, it can be part of media or mime types
such as image/svg+xml.
2007-10-16 Tim-Philipp Müller <tim at centricular dot net>
* docs/gst/gstreamer-sections.txt:

View file

@ -153,7 +153,7 @@ gst_structure_validate_name (const gchar * name)
/* FIXME: test name string more */
s = &name[1];
while (*s && (g_ascii_isalnum (*s) || strchr ("/-_.:", *s) != NULL))
while (*s && (g_ascii_isalnum (*s) || strchr ("/-_.:+", *s) != NULL))
s++;
if (*s != '\0') {
GST_WARNING ("Invalid character '%c' at offset %lu in structure name: %s",