Branch data Line data Source code
1 : :
2 : : /*** block from ../../../docs/manual/basics-elements.xml ***/
3 : : #include <gst/gst.h>
4 : :
5 : : int
6 : 1 : main (int argc,
7 : : char *argv[])
8 : : {
9 : : GstElement *element;
10 : :
11 : : /* init GStreamer */
12 : 1 : gst_init (&argc, &argv);
13 : :
14 : : /* create element */
15 : 1 : element = gst_element_factory_make ("fakesrc", "source");
16 [ - + ]: 1 : if (!element) {
17 : 0 : g_print ("Failed to create element of type 'fakesrc'\n");
18 : 0 : return -1;
19 : : }
20 : :
21 : 1 : gst_object_unref (GST_OBJECT (element));
22 : :
23 : 1 : return 0;
24 : : }
|