source: trunk/third/gstreamer/testsuite/elements/name.c @ 21005

Revision 21005, 615 bytes checked in by ghudson, 20 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r21004, which included commits to RCS files with non-trunk default branches.
Line 
1/*
2 * test with names
3 * create a bunch of elements with NULL as name
4 * make sure they get created with a decent name
5 */
6
7#include <gst/gst.h>
8
9int
10main (int argc, char *argv[])
11{
12  GstElement *element = NULL;
13  int i = 0;
14
15  /* init */
16  gst_init (&argc, &argv);
17
18  for (i = 0; i < 50; ++i) {
19    /* create element */
20    element = gst_element_factory_make ("identity", NULL);
21    g_assert (GST_IS_ELEMENT (element));
22    g_assert (gst_element_get_name (element) != NULL);
23    g_print ("Created identity element with name %s\n",
24        gst_element_get_name (element));
25  }
26  g_print ("Done !\n");
27  return 0;
28}
Note: See TracBrowser for help on using the repository browser.