59d6e72c612890f84f232d497ac69bb48fdcefe4
[platform/upstream/gstreamer.git] / tests / old / testsuite / dlopen / loadgst.c
1
2 #include <gst/gst.h>
3
4
5 void
6 do_test (void)
7 {
8   GstElement *pipeline;
9   int i;
10
11   gst_init (NULL, NULL);
12
13   pipeline = gst_parse_launch ("fakesrc ! fakesink", NULL);
14   g_assert (pipeline != NULL);
15
16   gst_element_set_state (pipeline, GST_STATE_PLAYING);
17
18   for (i = 0; i < 100; i++) {
19     g_usleep (1000);
20     g_print ("%s", (i & 1) ? "+" : "-");
21   }
22   g_print ("\n");
23
24   gst_element_set_state (pipeline, GST_STATE_NULL);
25   gst_object_unref (GST_OBJECT (pipeline));
26 }