index e5e0ab8869c2e98e3715f8c6dbfd043319670527..f04f76db111b265667070a4e31ec15ce50a88f9a 100644 (file)
gboolean done = FALSE;
static void
-construct_pipeline (GstElement *pipeline, gint identities)
+construct_pipeline (GstElement * pipeline, gint identities)
{
GstElement *src, *sink;
GstElement *identity = NULL;
int i;
identity = NULL;
- src = gst_element_factory_make ("fakesrc", NULL);
- sink = gst_element_factory_make ("fakesink", NULL);
+ src = gst_element_factory_make ("fakesrc", NULL);
+ sink = gst_element_factory_make ("fakesink", NULL);
g_assert (src);
g_assert (sink);
gst_bin_add_many (GST_BIN (pipeline), src, sink, NULL);
from = src;
- for (i = 0; i < identities; ++i)
- {
+ for (i = 0; i < identities; ++i) {
identity = gst_element_factory_make ("identity", NULL);
g_assert (identity);
gst_bin_add (GST_BIN (pipeline), identity);
int i;
GstElement *pipeline;
- for (i = 30; i < runs; ++i)
- {
+ for (i = 30; i < runs; ++i) {
pipeline = gst_pipeline_new ("main_pipeline");
g_assert (pipeline);
}
int
-main (gint argc, gchar *argv[])
+main (gint argc, gchar * argv[])
{
done = FALSE;
g_thread_create ((GThreadFunc) thread, NULL, FALSE, NULL);
g_print ("main: created GThread\n");
- while (!done) g_usleep (G_USEC_PER_SEC);
+ while (!done)
+ g_usleep (G_USEC_PER_SEC);
g_print ("main: done\n");
return 0;
}
-