gstreamer/tests/old/testsuite/caps/structure.c
David Schleef 4fa4267105 gst/gststructure.c: Set type field correctly.
Original commit message from CVS:
* gst/gststructure.c: (gst_structure_id_empty_new),
(gst_structure_empty_new):  Set type field correctly.
* gst/gststructure.h: Check type field correctly.
* testsuite/caps/Makefile.am:
* testsuite/caps/structure.c: (test1), (main): Add a very small
test for structures.
2004-07-23 00:12:57 +00:00

25 lines
350 B
C

#include <gst/gst.h>
void
test1 (void)
{
GstStructure *structure;
g_print ("type is %d\n", (int) gst_structure_get_type ());
structure = gst_structure_empty_new ("moo");
g_assert (structure != NULL);
g_assert (GST_IS_STRUCTURE (structure));
}
int
main (int argc, char *argv[])
{
gst_init (&argc, &argv);
test1 ();
return 0;
}