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

Revision 18714, 617 bytes checked in by ghudson, 22 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r18713, 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  {
20    /* create element */
21    element = gst_element_factory_make ("identity", NULL);
22    g_assert (GST_IS_ELEMENT (element));
23    g_assert (gst_element_get_name (element) != NULL);
24    g_print ("Created identity element with name %s\n",
25             gst_element_get_name (element));
26  }
27  g_print ("Done !\n");
28  return 0;
29}
30
Note: See TracBrowser for help on using the repository browser.