return FALSE;
}
- /* FIXME 0.11: don't allow spaces */
/* 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 (G_UNLIKELY (*s != '\0')) {
GST_WARNING ("Invalid character '%c' at offset %lu in structure name: %s",
fail_unless_equals_int (g_value_get_boolean (val), TRUE);
gst_structure_free (structure);
- /* This should still work for now (FIXME: 0.11) */
s = "0.10:decoder-video/mpeg, abc=(boolean)false";
- structure = gst_structure_from_string (s, NULL);
- fail_if (structure == NULL, "Could not get structure from string %s", s);
- gst_structure_free (structure);
+ ASSERT_CRITICAL (structure = gst_structure_from_string (s, NULL));
+ fail_unless (structure == NULL, "Could not get structure from string %s", s);
/* make sure we bail out correctly in case of an error or if parsing fails */
s = "***foo***, abc=(boolean)false";
ASSERT_CRITICAL (st1 = gst_structure_new ("Foo\nwith-newline", NULL));
fail_unless (st1 == NULL);
- /* FIXME 0.11: re-enable this */
-#if 0
ASSERT_CRITICAL (st1 = gst_structure_new ("Foo with whitespace", NULL));
fail_unless (st1 == NULL);
ASSERT_CRITICAL (st1 = gst_structure_new ("1st", NULL));
fail_unless (st1 == NULL);
-#else
- st1 = gst_structure_new ("Foo with whitespace is still allowed", NULL);
- fail_unless (st1 != NULL);
- gst_structure_free (st1);
-
- /* structure names starting with a number are also still allowed */
- st1 = gst_structure_new ("1st", NULL);
- fail_unless (st1 != NULL);
- gst_structure_free (st1);
-#endif
}
GST_END_TEST;
g_error_free (e);
gst_structure_free (s);
- /* This should still work for now (FIXME 0.11) */
- gst_structure_free (gst_structure_new ("0.10:decoder-video/mpeg", NULL));
+ ASSERT_CRITICAL (gst_structure_free (gst_structure_new
+ ("0.10:decoder-video/mpeg", NULL)));
/* make sure we bail out correctly in case of an error or if parsing fails */
ASSERT_CRITICAL (s = gst_structure_new ("^joo\nba\ndoo^",