{
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);
- ASSERT_CRITICAL (st1 = gst_structure_new ("Foo with whitespace", NULL));
+ ASSERT_CRITICAL (st1 = gst_structure_empty_new ("Foo with whitespace"));
fail_unless (st1 == NULL);
- ASSERT_CRITICAL (st1 = gst_structure_new ("1st", NULL));
+ ASSERT_CRITICAL (st1 = gst_structure_empty_new ("1st"));
fail_unless (st1 == NULL);
}
g_error_free (e);
gst_structure_free (s);
- ASSERT_CRITICAL (gst_structure_free (gst_structure_new
- ("0.10:decoder-video/mpeg", NULL)));
+ ASSERT_CRITICAL (gst_structure_free (gst_structure_empty_new
+ ("0.10:decoder-video/mpeg")));
/* make sure we bail out correctly in case of an error or if parsing fails */
ASSERT_CRITICAL (s = gst_structure_new ("^joo\nba\ndoo^",
gst_value_set_fraction (&frac, 10, 1);
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);
g_value_unset (&frac);
g_value_unset (&list);
got_handoff (GstElement * sink, GstBuffer * buf, GstPad * pad, gpointer unused)
{
gst_element_post_message
- (sink, gst_message_new_application (NULL, gst_structure_new ("foo",
- NULL)));
+ (sink, gst_message_new_application (NULL,
+ gst_structure_empty_new ("foo")));
}
static void