mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-12 12:21:30 +00:00
4fa4267105
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.
25 lines
350 B
C
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;
|
|
}
|