mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-01 22:21:13 +00:00
10e648c7d9
Original commit message from CVS: Removed schedulers and compat stuff. Use iterators in bin for the various lookup functions. Optimized the clock a bit. Added some more docs. Fixed scheduling in the ()-(l) case. Fixed and added some testcases. Removed old code.
26 lines
467 B
C
26 lines
467 B
C
|
|
#include <gst/gst.h>
|
|
|
|
|
|
void
|
|
do_test (void)
|
|
{
|
|
GstElement *pipeline;
|
|
int i;
|
|
|
|
gst_init (NULL, NULL);
|
|
|
|
pipeline = gst_parse_launch ("fakesrc ! fakesink", NULL);
|
|
g_assert (pipeline != NULL);
|
|
|
|
gst_element_set_state (pipeline, GST_STATE_PLAYING);
|
|
|
|
for (i = 0; i < 100; i++) {
|
|
g_usleep (1000);
|
|
g_print ("%s", (i & 1) ? "+" : "-");
|
|
}
|
|
g_print ("\n");
|
|
|
|
gst_element_set_state (pipeline, GST_STATE_NULL);
|
|
gst_object_unref (GST_OBJECT (pipeline));
|
|
}
|