mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-30 04:00:37 +00:00
tests: fix compilation
This commit is contained in:
parent
3406549cf6
commit
4a189f80a5
3 changed files with 9 additions and 9 deletions
|
@ -176,7 +176,7 @@ GST_END_TEST;
|
||||||
GST_START_TEST (test_single)
|
GST_START_TEST (test_single)
|
||||||
{
|
{
|
||||||
GstIterator *it;
|
GstIterator *it;
|
||||||
GstStructure *s = gst_structure_new ("test", NULL);
|
GstStructure *s = gst_structure_empty_new ("test");
|
||||||
GValue v = { 0, };
|
GValue v = { 0, };
|
||||||
GstStructure *i;
|
GstStructure *i;
|
||||||
|
|
||||||
|
|
|
@ -183,12 +183,12 @@ GST_START_TEST (test_to_string)
|
||||||
{
|
{
|
||||||
GstStructure *st1;
|
GstStructure *st1;
|
||||||
|
|
||||||
ASSERT_CRITICAL (st1 = gst_structure_new ("Foo\nwith-newline", NULL));
|
ASSERT_CRITICAL (st1 = gst_structure_empty_new ("Foo\nwith-newline"));
|
||||||
fail_unless (st1 == NULL);
|
fail_unless (st1 == NULL);
|
||||||
|
|
||||||
ASSERT_CRITICAL (st1 = gst_structure_new ("Foo with whitespace", NULL));
|
ASSERT_CRITICAL (st1 = gst_structure_empty_new ("Foo with whitespace"));
|
||||||
fail_unless (st1 == NULL);
|
fail_unless (st1 == NULL);
|
||||||
ASSERT_CRITICAL (st1 = gst_structure_new ("1st", NULL));
|
ASSERT_CRITICAL (st1 = gst_structure_empty_new ("1st"));
|
||||||
fail_unless (st1 == NULL);
|
fail_unless (st1 == NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -321,8 +321,8 @@ GST_START_TEST (test_structure_new)
|
||||||
g_error_free (e);
|
g_error_free (e);
|
||||||
gst_structure_free (s);
|
gst_structure_free (s);
|
||||||
|
|
||||||
ASSERT_CRITICAL (gst_structure_free (gst_structure_new
|
ASSERT_CRITICAL (gst_structure_free (gst_structure_empty_new
|
||||||
("0.10:decoder-video/mpeg", NULL)));
|
("0.10:decoder-video/mpeg")));
|
||||||
|
|
||||||
/* make sure we bail out correctly in case of an error or if parsing fails */
|
/* make sure we bail out correctly in case of an error or if parsing fails */
|
||||||
ASSERT_CRITICAL (s = gst_structure_new ("^joo\nba\ndoo^",
|
ASSERT_CRITICAL (s = gst_structure_new ("^joo\nba\ndoo^",
|
||||||
|
@ -369,7 +369,7 @@ GST_START_TEST (test_fixate_frac_list)
|
||||||
gst_value_set_fraction (&frac, 10, 1);
|
gst_value_set_fraction (&frac, 10, 1);
|
||||||
gst_value_list_append_value (&list, &frac);
|
gst_value_list_append_value (&list, &frac);
|
||||||
|
|
||||||
s = gst_structure_new ("name", NULL);
|
s = gst_structure_empty_new ("name");
|
||||||
gst_structure_set_value (s, "frac", &list);
|
gst_structure_set_value (s, "frac", &list);
|
||||||
g_value_unset (&frac);
|
g_value_unset (&frac);
|
||||||
g_value_unset (&list);
|
g_value_unset (&list);
|
||||||
|
|
|
@ -239,8 +239,8 @@ static void
|
||||||
got_handoff (GstElement * sink, GstBuffer * buf, GstPad * pad, gpointer unused)
|
got_handoff (GstElement * sink, GstBuffer * buf, GstPad * pad, gpointer unused)
|
||||||
{
|
{
|
||||||
gst_element_post_message
|
gst_element_post_message
|
||||||
(sink, gst_message_new_application (NULL, gst_structure_new ("foo",
|
(sink, gst_message_new_application (NULL,
|
||||||
NULL)));
|
gst_structure_empty_new ("foo")));
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in a new issue