]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - glsdk/gstreamer0-10.git/blobdiff - tests/sched/sched-stress.c
gst-indent run on core
[glsdk/gstreamer0-10.git] / tests / sched / sched-stress.c
index 28cccc6b53135de1c9caefbdb5061dc0a408c29c..34981598f84ccc9ddb1d39e3b7d8f9eee1c8f13d 100644 (file)
@@ -2,17 +2,17 @@
 
 #define TAILLE 100
 
-int main (int argc, char *argv[]) 
+int
+main (int argc, char *argv[])
 {
   GstElement *bin, *src, *dec, *sink;
   int i, j;
 
   gst_init (&argc, &argv);
 
-  free (malloc (8)); /* -lefence */
+  free (malloc (8));           /* -lefence */
 
-  for(i = 0; i < TAILLE; i++)
-  {
+  for (i = 0; i < TAILLE; i++) {
     bin = gst_pipeline_new ("pipeline");
     src = gst_element_factory_make ("fakesrc", "source");
     dec = gst_element_factory_make ("identity", "decoder");
@@ -20,11 +20,10 @@ int main (int argc, char *argv[])
     gst_bin_add_many (GST_BIN (bin), src, dec, sink, NULL);
     gst_element_link_many (src, dec, sink, NULL);
     gst_element_set_state (bin, GST_STATE_PLAYING);
-    for(j = 0; j < 30; j++)
-           gst_bin_iterate(GST_BIN(bin));
+    for (j = 0; j < 30; j++)
+      gst_bin_iterate (GST_BIN (bin));
     gst_element_set_state (bin, GST_STATE_PAUSED);
   }
 
   return 0;
 }
-