summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorThomas Vander Stichele <thomas@apestaart.org>2004-03-15 19:27:17 +0000
committerThomas Vander Stichele <thomas@apestaart.org>2004-03-15 19:27:17 +0000
commit7baa6c18e7ea33c0783aa227838544a53393a939 (patch)
tree2828012c446780bfaa5276fa3ab23be4a975e52d /testsuite
parent84f49e604dc2940a8f58de9f89a27b8dcab3498f (diff)
don't mix tabs and spaces
Original commit message from CVS: don't mix tabs and spaces
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/bytestream/gstbstest.c76
-rw-r--r--testsuite/bytestream/test1.c21
-rw-r--r--testsuite/caps/app_fixate.c2
-rw-r--r--testsuite/caps/caps.c12
-rw-r--r--testsuite/caps/intersect2.c8
-rw-r--r--testsuite/caps/intersection.c6
-rw-r--r--testsuite/cleanup/cleanup1.c2
-rw-r--r--testsuite/cleanup/cleanup2.c2
-rw-r--r--testsuite/cleanup/cleanup3.c2
-rw-r--r--testsuite/cleanup/cleanup4.c2
-rw-r--r--testsuite/cleanup/cleanup5.c2
-rw-r--r--testsuite/debug/category.c6
-rw-r--r--testsuite/debug/commandline.c40
-rw-r--r--testsuite/debug/global.c4
-rw-r--r--testsuite/dynparams/dparamstest.c4
-rw-r--r--testsuite/elements/fake.c2
-rw-r--r--testsuite/elements/name.c2
-rw-r--r--testsuite/elements/property.c6
-rw-r--r--testsuite/indexers/cache1.c11
-rw-r--r--testsuite/indexers/indexdump.c12
-rw-r--r--testsuite/parse/parse1.c2
-rw-r--r--testsuite/refcounting/pad.c4
-rw-r--r--testsuite/refcounting/sched.c4
-rw-r--r--testsuite/threads/thread.c2
-rw-r--r--testsuite/threads/threadb.c2
-rw-r--r--testsuite/threads/threadc.c4
-rw-r--r--testsuite/threads/threadd.c8
-rw-r--r--testsuite/threads/threade.c2
28 files changed, 126 insertions, 124 deletions
diff --git a/testsuite/bytestream/gstbstest.c b/testsuite/bytestream/gstbstest.c
index 883bdbf36..26fdc68af 100644
--- a/testsuite/bytestream/gstbstest.c
+++ b/testsuite/bytestream/gstbstest.c
@@ -124,7 +124,7 @@ gst_bstest_get_type (void)
};
bstest_type =
- g_type_register_static (GST_TYPE_ELEMENT, "BSTest", &bstest_info, 0);
+ g_type_register_static (GST_TYPE_ELEMENT, "BSTest", &bstest_info, 0);
}
return bstest_type;
}
@@ -149,19 +149,19 @@ gst_bstest_class_init (GstBsTestClass * klass)
g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_SIZEMIN,
g_param_spec_int ("sizemin", "sizemin", "sizemin", 0, G_MAXINT,
- 0, G_PARAM_READWRITE));
+ 0, G_PARAM_READWRITE));
g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_SIZEMAX,
g_param_spec_int ("sizemax", "sizemax", "sizemax", 0, G_MAXINT,
- 384, G_PARAM_READWRITE));
+ 384, G_PARAM_READWRITE));
g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_ACCESSPATTERN,
g_param_spec_string ("accesspattern", "accesspattern", "accesspattern",
- "r", G_PARAM_READWRITE));
+ "r", G_PARAM_READWRITE));
g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_COUNT,
g_param_spec_uint ("count", "count", "count",
- 0, G_MAXUINT, 0, G_PARAM_READWRITE));
+ 0, G_MAXUINT, 0, G_PARAM_READWRITE));
g_object_class_install_property (G_OBJECT_CLASS (klass), ARG_SILENT,
g_param_spec_boolean ("silent", "silent", "silent",
- FALSE, G_PARAM_READWRITE));
+ FALSE, G_PARAM_READWRITE));
gobject_class->set_property = GST_DEBUG_FUNCPTR (gst_bstest_set_property);
gobject_class->get_property = GST_DEBUG_FUNCPTR (gst_bstest_get_property);
@@ -212,9 +212,9 @@ gst_bstest_get_size (GstBsTest * bstest, gchar * sizestring, guint prevsize)
size = bstest->sizemax;
} else if (sizestring[0] == 'r') {
size =
- bstest->sizemin +
- (guint8) (((gfloat) bstest->sizemax) * rand () / (RAND_MAX +
- (gfloat) bstest->sizemin));
+ bstest->sizemin +
+ (guint8) (((gfloat) bstest->sizemax) * rand () / (RAND_MAX +
+ (gfloat) bstest->sizemin));
} else if (sizestring[0] == '<') {
size = prevsize;
} else {
@@ -247,31 +247,31 @@ gst_bstest_loop (GstElement * element)
buf = NULL;
if (bstest->patterns[i][0] == 'r') {
- size = gst_bstest_get_size (bstest, &bstest->patterns[i][1], size);
- if (!bstest->silent)
- g_print ("bstest: ***** read %d bytes\n", size);
- gst_bytestream_read (bstest->bs, &buf, size);
+ size = gst_bstest_get_size (bstest, &bstest->patterns[i][1], size);
+ if (!bstest->silent)
+ g_print ("bstest: ***** read %d bytes\n", size);
+ gst_bytestream_read (bstest->bs, &buf, size);
} else if (bstest->patterns[i][0] == 'f') {
- size = gst_bstest_get_size (bstest, &bstest->patterns[i][1], size);
- if (!bstest->silent)
- g_print ("bstest: ***** flush %d bytes\n", size);
- gst_bytestream_flush (bstest->bs, size);
+ size = gst_bstest_get_size (bstest, &bstest->patterns[i][1], size);
+ if (!bstest->silent)
+ g_print ("bstest: ***** flush %d bytes\n", size);
+ gst_bytestream_flush (bstest->bs, size);
} else if (!strncmp (bstest->patterns[i], "pb", 2)) {
- size = gst_bstest_get_size (bstest, &bstest->patterns[i][2], size);
- if (!bstest->silent)
- g_print ("bstest: ***** peek bytes %d bytes\n", size);
- gst_bytestream_peek_bytes (bstest->bs, &ptr, size);
+ size = gst_bstest_get_size (bstest, &bstest->patterns[i][2], size);
+ if (!bstest->silent)
+ g_print ("bstest: ***** peek bytes %d bytes\n", size);
+ gst_bytestream_peek_bytes (bstest->bs, &ptr, size);
} else if (bstest->patterns[i][0] == 'p') {
- size = gst_bstest_get_size (bstest, &bstest->patterns[i][1], size);
- if (!bstest->silent)
- g_print ("bstest: ***** peek %d bytes\n", size);
- gst_bytestream_peek (bstest->bs, &buf, size);
- gst_buffer_unref (buf);
- buf = NULL;
+ size = gst_bstest_get_size (bstest, &bstest->patterns[i][1], size);
+ if (!bstest->silent)
+ g_print ("bstest: ***** peek %d bytes\n", size);
+ gst_bytestream_peek (bstest->bs, &buf, size);
+ gst_buffer_unref (buf);
+ buf = NULL;
}
if (buf)
- gst_pad_push (bstest->srcpad, GST_DATA (buf));
+ gst_pad_push (bstest->srcpad, GST_DATA (buf));
i++;
}
@@ -300,20 +300,20 @@ gst_bstest_set_property (GObject * object, guint prop_id, const GValue * value,
break;
case ARG_ACCESSPATTERN:
if (bstest->accesspattern) {
- g_free (bstest->accesspattern);
- g_strfreev (bstest->patterns);
+ g_free (bstest->accesspattern);
+ g_strfreev (bstest->patterns);
}
if (g_value_get_string (value) == NULL) {
- gst_element_set_state (GST_ELEMENT (object), GST_STATE_NULL);
- bstest->accesspattern = NULL;
- bstest->num_patterns = 0;
+ gst_element_set_state (GST_ELEMENT (object), GST_STATE_NULL);
+ bstest->accesspattern = NULL;
+ bstest->num_patterns = 0;
} else {
- guint i = 0;
+ guint i = 0;
- bstest->accesspattern = g_strdup (g_value_get_string (value));
- bstest->patterns = g_strsplit (bstest->accesspattern, ":", 0);
- while (bstest->patterns[i++]);
- bstest->num_patterns = i - 1;
+ bstest->accesspattern = g_strdup (g_value_get_string (value));
+ bstest->patterns = g_strsplit (bstest->accesspattern, ":", 0);
+ while (bstest->patterns[i++]);
+ bstest->num_patterns = i - 1;
}
break;
case ARG_COUNT:
diff --git a/testsuite/bytestream/test1.c b/testsuite/bytestream/test1.c
index 088cacd0e..09f96894c 100644
--- a/testsuite/bytestream/test1.c
+++ b/testsuite/bytestream/test1.c
@@ -15,7 +15,8 @@ typedef struct
gchar *bs_accesspattern;
gboolean integrity_check;
-} TestParam;
+}
+TestParam;
static GSList *params = NULL;
@@ -34,10 +35,10 @@ handoff (GstElement * element, GstBuffer * buf, GstPad * pad, gpointer data)
guint8 *ptr = GST_BUFFER_DATA (buf);
for (i = 0; i < GST_BUFFER_SIZE (buf); i++) {
- if (*ptr++ != count++) {
- g_print ("data error!\n");
- return;
- }
+ if (*ptr++ != count++) {
+ g_print ("data error!\n");
+ return;
+ }
}
}
} else {
@@ -80,7 +81,7 @@ read_param_file (gchar * filename)
continue;
if (sscanf (line, scan_str, &data, &sizetype, pattern,
- &integrity_check) != 4) {
+ &integrity_check) != 4) {
g_print ("error on line: %d\n", linenr);
res = FALSE;
break;
@@ -118,7 +119,7 @@ run_test (GstBin * pipeline, gint iters)
if (percent != prev_percent || newvm - vm > VM_THRES) {
g_print ("\r%d (delta %d) %.3d%% ", newvm, newvm - vm,
- percent);
+ percent);
prev_percent = percent;
vm = newvm;
}
@@ -207,11 +208,11 @@ main (int argc, char *argv[])
g_free (desc);
g_object_set (G_OBJECT (src), "data", param->src_data,
- "sizetype", param->src_sizetype,
- "filltype", (integrity_check ? 5 : 0), "silent", !verbose, NULL);
+ "sizetype", param->src_sizetype,
+ "filltype", (integrity_check ? 5 : 0), "silent", !verbose, NULL);
g_object_set (G_OBJECT (bs), "accesspattern", param->bs_accesspattern,
- "silent", !verbose, NULL);
+ "silent", !verbose, NULL);
g_object_set (G_OBJECT (sink), "dump", dump, "silent", !verbose, NULL);
diff --git a/testsuite/caps/app_fixate.c b/testsuite/caps/app_fixate.c
index 6c8500d55..52658e7ee 100644
--- a/testsuite/caps/app_fixate.c
+++ b/testsuite/caps/app_fixate.c
@@ -13,7 +13,7 @@ handler (GObject * object, GstCaps * caps, gpointer user_data)
if (gst_caps_is_any (caps)) {
return gst_caps_new_simple ("application/x-foo",
- "field", GST_TYPE_INT_RANGE, 1, 10, NULL);
+ "field", GST_TYPE_INT_RANGE, 1, 10, NULL);
}
return NULL;
diff --git a/testsuite/caps/caps.c b/testsuite/caps/caps.c
index c99b0d8a2..cfc4a1b72 100644
--- a/testsuite/caps/caps.c
+++ b/testsuite/caps/caps.c
@@ -59,8 +59,8 @@ test1 (void)
caps =
gst_caps_new_full (gst_structure_new ("audio/raw", "_int", G_TYPE_INT,
- 100, NULL), gst_structure_new ("audio/raw2", "_int", G_TYPE_INT, 100,
- NULL), NULL);
+ 100, NULL), gst_structure_new ("audio/raw2", "_int", G_TYPE_INT, 100,
+ NULL), NULL);
g_assert (caps != NULL);
g_assert (gst_caps_is_empty (caps) == FALSE);
g_assert (gst_caps_is_any (caps) == FALSE);
@@ -114,12 +114,12 @@ test2 (void)
caps1 =
gst_caps_new_full (gst_structure_new ("audio/raw", "_int", G_TYPE_INT,
- 100, NULL), gst_structure_new ("audio/raw", "_int", G_TYPE_INT, 200,
- NULL), NULL);
+ 100, NULL), gst_structure_new ("audio/raw", "_int", G_TYPE_INT, 200,
+ NULL), NULL);
caps2 =
gst_caps_new_full (gst_structure_new ("audio/raw", "_int", G_TYPE_INT,
- 100, NULL), gst_structure_new ("audio/raw", "_int", G_TYPE_INT, 300,
- NULL), NULL);
+ 100, NULL), gst_structure_new ("audio/raw", "_int", G_TYPE_INT, 300,
+ NULL), NULL);
caps = gst_caps_intersect (caps1, caps2);
g_print ("%s\n", gst_caps_to_string (caps));
gst_caps_free (caps);
diff --git a/testsuite/caps/intersect2.c b/testsuite/caps/intersect2.c
index f148b4ae1..7eef6dd52 100644
--- a/testsuite/caps/intersect2.c
+++ b/testsuite/caps/intersect2.c
@@ -23,15 +23,15 @@ GstStaticCaps rawcaps5 =
("video/x-raw-yuv, format=(fourcc)YUY2, framerate=(double)[0,1.79769e+308], width=(int)[0,2147483647], height=(int)[0,2147483647]; video/x-raw-yuv, format=(fourcc)UYVY, framerate=(double)[0,1.79769e+308], width=(int)[0,2147483647], height=(int)[0,2147483647]");
GstStaticCaps rawcaps6 =
-GST_STATIC_CAPS
+ GST_STATIC_CAPS
("video/x-raw-yuv, format=(fourcc)YUY2, width=(int)320, height=(int)240");
GstStaticCaps rawcaps7 =
-GST_STATIC_CAPS
+ GST_STATIC_CAPS
("video/x-raw-yuv, format=(fourcc)YUY2, width=(int)[0,2147483647], height=(int)[0,2147483647], framerate=(double)[0,1.79769e+308]");
GstStaticCaps rawcaps8 =
-GST_STATIC_CAPS
+ GST_STATIC_CAPS
("video/x-raw-yuv, format=(fourcc)YUY2, width=(int)320, height=(int)240");
@@ -49,7 +49,7 @@ main (int argc, char *argv[])
caps1 = gst_caps_copy (gst_static_caps_get (&rawcaps1));
caps2 =
gst_caps_new_full (gst_structure_copy (gst_caps_get_structure
- (gst_static_caps_get (&rawcaps1), 0)), NULL);
+ (gst_static_caps_get (&rawcaps1), 0)), NULL);
#if 0
gst_caps_set (caps1, "height", GST_PROPS_INT (640));
diff --git a/testsuite/caps/intersection.c b/testsuite/caps/intersection.c
index 381cb7d2f..48d320a04 100644
--- a/testsuite/caps/intersection.c
+++ b/testsuite/caps/intersection.c
@@ -36,11 +36,11 @@ GstStaticCaps rawcaps6 = GST_STATIC_CAPS ("video/raw, "
"height=(int)640, " "width=(int)480, " "framerate=(double)30.0");
GstStaticCaps rawcaps7 =
-GST_STATIC_CAPS
+ GST_STATIC_CAPS
("video/x-raw-yuv, format=(fourcc)YUY2, width=(int)[1,2147483647], height=(int)[1,2147483647], framerate=(double)[0,1.79769e+308]");
GstStaticCaps rawcaps8 =
-GST_STATIC_CAPS
+ GST_STATIC_CAPS
("video/x-raw-yuv, format=(fourcc){ I420, YV12, YUY2 }, width=(int)[16,4096], height=(int)[16,4096], framerate=(double)[0,1.79769e+308]");
int
@@ -86,7 +86,7 @@ main (int argc, char *argv[])
caps = gst_caps_intersect (gst_static_caps_get (&rawcaps6),
gst_caps_new_full (gst_structure_copy (gst_caps_get_structure
- (gst_static_caps_get (&rawcaps6), 0)), NULL));
+ (gst_static_caps_get (&rawcaps6), 0)), NULL));
parent = xmlNewChild (doc->xmlRootNode, NULL, "Capabilities5", NULL);
gst_caps_save_thyself (caps, parent);
diff --git a/testsuite/cleanup/cleanup1.c b/testsuite/cleanup/cleanup1.c
index ac8ffd876..f888b9a0b 100644
--- a/testsuite/cleanup/cleanup1.c
+++ b/testsuite/cleanup/cleanup1.c
@@ -28,7 +28,7 @@ main (gint argc, gchar * argv[])
gint i = 1000;
gint step = 100;
- free (malloc (8)); /* -lefence */
+ free (malloc (8)); /* -lefence */
gst_init (&argc, &argv);
diff --git a/testsuite/cleanup/cleanup2.c b/testsuite/cleanup/cleanup2.c
index 53fcba77a..3d14b5abf 100644
--- a/testsuite/cleanup/cleanup2.c
+++ b/testsuite/cleanup/cleanup2.c
@@ -32,7 +32,7 @@ main (gint argc, gchar * argv[])
gint i = 1000;
gint step = 100;
- free (malloc (8)); /* -lefence */
+ free (malloc (8)); /* -lefence */
gst_init (&argc, &argv);
diff --git a/testsuite/cleanup/cleanup3.c b/testsuite/cleanup/cleanup3.c
index c2a35fe38..37498ba2b 100644
--- a/testsuite/cleanup/cleanup3.c
+++ b/testsuite/cleanup/cleanup3.c
@@ -36,7 +36,7 @@ main (gint argc, gchar * argv[])
gint i = 10000;
gint step = 100;
- free (malloc (8)); /* -lefence */
+ free (malloc (8)); /* -lefence */
gst_init (&argc, &argv);
diff --git a/testsuite/cleanup/cleanup4.c b/testsuite/cleanup/cleanup4.c
index ba56a1b24..0bdc99726 100644
--- a/testsuite/cleanup/cleanup4.c
+++ b/testsuite/cleanup/cleanup4.c
@@ -7,7 +7,7 @@ main (gint argc, gchar * argv[])
GstElement *fakesrc;
gint i;
- free (malloc (8)); /* -lefence */
+ free (malloc (8)); /* -lefence */
gst_init (&argc, &argv);
diff --git a/testsuite/cleanup/cleanup5.c b/testsuite/cleanup/cleanup5.c
index a3187b8bc..5ec03b5a9 100644
--- a/testsuite/cleanup/cleanup5.c
+++ b/testsuite/cleanup/cleanup5.c
@@ -8,7 +8,7 @@ main (int argc, char *argv[])
gint step = 100;
- free (malloc (8)); /* -lefence */
+ free (malloc (8)); /* -lefence */
gst_init (&argc, &argv);
diff --git a/testsuite/debug/category.c b/testsuite/debug/category.c
index edc43227b..cd1c89db4 100644
--- a/testsuite/debug/category.c
+++ b/testsuite/debug/category.c
@@ -52,16 +52,16 @@ main (gint argc, gchar * argv[])
g_assert (strcmp (gst_debug_category_get_name (cat), "cat") == 0);
g_assert (gst_debug_category_get_color (cat) == GST_DEBUG_FG_GREEN);
g_assert (strcmp (gst_debug_category_get_description (cat),
- "default category for this test") == 0);
+ "default category for this test") == 0);
g_assert (gst_debug_category_get_threshold (cat) ==
gst_debug_get_default_threshold ());
g_assert (strcmp (gst_debug_category_get_name (cat_static),
- "cat_static") == 0);
+ "cat_static") == 0);
g_assert (gst_debug_category_get_color (cat_static) | GST_DEBUG_FG_GREEN);
g_assert (gst_debug_category_get_color (cat_static) | GST_DEBUG_BG_RED);
g_assert (gst_debug_category_get_color (cat_static) | GST_DEBUG_BOLD);
g_assert (strcmp (gst_debug_category_get_description (cat_static),
- "static category for this test") == 0);
+ "static category for this test") == 0);
g_assert (gst_debug_category_get_threshold (cat_static) ==
gst_debug_get_default_threshold ());
/* check if setting levels for names work */
diff --git a/testsuite/debug/commandline.c b/testsuite/debug/commandline.c
index 1dfb38e3e..48502fe56 100644
--- a/testsuite/debug/commandline.c
+++ b/testsuite/debug/commandline.c
@@ -57,7 +57,7 @@ main (gint argc, gchar * argv[])
command = g_strdup_printf ("%s %s %d", argv[0], lines[i], i);
g_print ("running \"%s\"\n", command);
g_assert (g_spawn_command_line_sync (command, NULL, NULL, &exit,
- NULL) == TRUE);
+ NULL) == TRUE);
g_assert (exit == 0);
g_print ("\"%s\" worked as expected.\n", command);
g_free (command);
@@ -68,7 +68,7 @@ main (gint argc, gchar * argv[])
gst_init (&argc, &argv);
if (argc != 2) {
g_print
- ("something funny happened to the command line arguments, aborting.\n");
+ ("something funny happened to the command line arguments, aborting.\n");
return 1;
}
gst_debug_remove_log_function (gst_debug_log_default);
@@ -76,29 +76,29 @@ main (gint argc, gchar * argv[])
GST_DEBUG_CATEGORY_INIT (cat_static, "cat_static", 0, "static category");
switch (argv[1][0]) {
case '0':
- g_assert (gst_debug_is_active () == FALSE);
- gst_debug_add_log_function (debug_not_reached, NULL);
- GST_ERROR ("This will not be seen");
- return 0;
+ g_assert (gst_debug_is_active () == FALSE);
+ gst_debug_add_log_function (debug_not_reached, NULL);
+ GST_ERROR ("This will not be seen");
+ return 0;
case '1':
- return gst_debug_is_colored ()? 1 : 0;
+ return gst_debug_is_colored ()? 1 : 0;
case '2':
- g_assert (gst_debug_get_default_threshold () == 4);
- g_assert (gst_debug_category_get_threshold (cat) == 4);
- return 0;
+ g_assert (gst_debug_get_default_threshold () == 4);
+ g_assert (gst_debug_category_get_threshold (cat) == 4);
+ return 0;
case '3':
- g_assert (gst_debug_get_default_threshold () == GST_LEVEL_DEFAULT);
- g_assert (gst_debug_category_get_threshold (cat) == 4);
- g_assert (gst_debug_category_get_threshold (cat_static) == 3);
- return 0;
+ g_assert (gst_debug_get_default_threshold () == GST_LEVEL_DEFAULT);
+ g_assert (gst_debug_category_get_threshold (cat) == 4);
+ g_assert (gst_debug_category_get_threshold (cat_static) == 3);
+ return 0;
case '4':
- g_assert (gst_debug_get_default_threshold () == 4);
- g_assert (gst_debug_category_get_threshold (cat) == 4);
- g_assert (gst_debug_category_get_threshold (cat_static) == 5);
- return 0;
+ g_assert (gst_debug_get_default_threshold () == 4);
+ g_assert (gst_debug_category_get_threshold (cat) == 4);
+ g_assert (gst_debug_category_get_threshold (cat_static) == 5);
+ return 0;
default:
- g_print ("usupported command, aborting...\n");
- return -1;
+ g_print ("usupported command, aborting...\n");
+ return -1;
}
}
g_assert_not_reached ();
diff --git a/testsuite/debug/global.c b/testsuite/debug/global.c
index 2a397ab8e..58033203a 100644
--- a/testsuite/debug/global.c
+++ b/testsuite/debug/global.c
@@ -43,7 +43,7 @@ gst_debug_log_one (GstDebugCategory * category,
GObject * object, gchar * message, gpointer thread) G_GNUC_NO_INSTRUMENT;
static void
- gst_debug_log_one (GstDebugCategory * category, GstDebugLevel level,
+ gst_debug_log_one (GstDebugCategory * category, GstDebugLevel level,
const gchar * file, const gchar * function, gint line, GObject * object,
gchar * message, gpointer thread)
{
@@ -95,7 +95,7 @@ main (gint argc, gchar * argv[])
g_print ("creating %d threads\n", THREAD_COUNT);
for (i = 0; i < THREAD_COUNT; i++) {
g_assert ((threads[i] =
- g_thread_create (thread_main, GINT_TO_POINTER (i), TRUE, NULL)));
+ g_thread_create (thread_main, GINT_TO_POINTER (i), TRUE, NULL)));
}
g_print ("joining %d threads\n", THREAD_COUNT);
for (i = 0; i < THREAD_COUNT; i++) {
diff --git a/testsuite/dynparams/dparamstest.c b/testsuite/dynparams/dparamstest.c
index 0a73f4c50..a0c044b7f 100644
--- a/testsuite/dynparams/dparamstest.c
+++ b/testsuite/dynparams/dparamstest.c
@@ -96,7 +96,7 @@ gst_dptest_get_type (void)
};
dptest_type =
- g_type_register_static (GST_TYPE_ELEMENT, "GstDpTest", &dptest_info, 0);
+ g_type_register_static (GST_TYPE_ELEMENT, "GstDpTest", &dptest_info, 0);
}
return dptest_type;
}
@@ -147,7 +147,7 @@ gst_dptest_init (GstDpTest * dptest)
gst_dpman_add_required_dparam_direct (dptest->dpman,
g_param_spec_float ("float1", "float1", "float1",
- 0.0, 1.0, 0.5, G_PARAM_READWRITE), "float", &(dptest->float1)
+ 0.0, 1.0, 0.5, G_PARAM_READWRITE), "float", &(dptest->float1)
);
dptest->float1 = 0.0;
diff --git a/testsuite/elements/fake.c b/testsuite/elements/fake.c
index 14406b210..43e4c33e3 100644
--- a/testsuite/elements/fake.c
+++ b/testsuite/elements/fake.c
@@ -62,7 +62,7 @@ main (int argc, char *argv[])
/* we expect this to give an error */
if (gst_bin_iterate (GST_BIN (pipeline)) != FALSE) {
g_warning
- ("Iterating a bin with unlinked elements should return FALSE !\n");
+ ("Iterating a bin with unlinked elements should return FALSE !\n");
retval = 1;
}
diff --git a/testsuite/elements/name.c b/testsuite/elements/name.c
index ff0d184cf..2780e2c91 100644
--- a/testsuite/elements/name.c
+++ b/testsuite/elements/name.c
@@ -21,7 +21,7 @@ main (int argc, char *argv[])
g_assert (GST_IS_ELEMENT (element));
g_assert (gst_element_get_name (element) != NULL);
g_print ("Created identity element with name %s\n",
- gst_element_get_name (element));
+ gst_element_get_name (element));
}
g_print ("Done !\n");
return 0;
diff --git a/testsuite/elements/property.c b/testsuite/elements/property.c
index 835df3d3e..f1ae40fed 100644
--- a/testsuite/elements/property.c
+++ b/testsuite/elements/property.c
@@ -60,21 +60,21 @@ main (int argc, char *argv[])
/* compare */
if (sizemin_set != sizemin_get) {
g_print ("sizemin: set value %d differs from returned value %d\n",
- sizemin_set, sizemin_get);
+ sizemin_set, sizemin_get);
retval = 1;
} else
g_print ("name: set right\n");
if (silent_set != silent_get) {
g_print ("silent: set value %s differs from returned value %s\n",
- silent_set ? "TRUE" : "FALSE", silent_get ? "TRUE" : "FALSE");
+ silent_set ? "TRUE" : "FALSE", silent_get ? "TRUE" : "FALSE");
retval = 1;
} else
g_print ("silent: set right\n");
if (strcmp (name_set, name_get) != 0) {
g_print ("name: set value %s differs from returned value %s\n",
- name_set, name_get);
+ name_set, name_get);
retval = 1;
} else
g_print ("name: set right\n");
diff --git a/testsuite/indexers/cache1.c b/testsuite/indexers/cache1.c
index ed2bb4d1d..e61d9d5db 100644
--- a/testsuite/indexers/cache1.c
+++ b/testsuite/indexers/cache1.c
@@ -44,7 +44,7 @@ lookup (GstIndex * index, GstIndexLookupMethod method,
g_print ("OK (not found)\n");
else
g_print ("FAIL - no index entry found for %lld %s, expecting %lld\n",
- src_value, def->nick, expecting);
+ src_value, def->nick, expecting);
}
}
@@ -55,7 +55,8 @@ typedef struct _GstIndexTestCase
gint64 src_value;
GstFormat dest_format;
gint64 expecting;
-} GstIndexTestCase;
+}
+GstIndexTestCase;
const static GstIndexTestCase cases[] = {
{GST_INDEX_LOOKUP_EXACT, GST_FORMAT_BYTES, 3, GST_FORMAT_TIME, 3000},
@@ -68,7 +69,7 @@ const static GstIndexTestCase cases[] = {
{GST_INDEX_LOOKUP_AFTER, GST_FORMAT_TIME, 0, GST_FORMAT_BYTES, 0},
{GST_INDEX_LOOKUP_BEFORE, GST_FORMAT_TIME, -1, GST_FORMAT_BYTES, -1},
{GST_INDEX_LOOKUP_BEFORE, GST_FORMAT_TIME, G_MAXINT64, GST_FORMAT_BYTES,
- 99999},
+ 99999},
{GST_INDEX_LOOKUP_AFTER, GST_FORMAT_TIME, G_MAXINT64, GST_FORMAT_BYTES, -1},
};
@@ -98,14 +99,14 @@ main (gint argc, gchar * argv[])
for (i = 0; i < 100000; i++) {
gst_index_add_association (index, 0, 0, GST_FORMAT_BYTES, (gint64) i,
- GST_FORMAT_TIME, (gint64) (i * 1000), 0);
+ GST_FORMAT_TIME, (gint64) (i * 1000), 0);
}
g_print ("Testing index...\n");
for (i = 0; i < (sizeof (cases) / sizeof (GstIndexTestCase)); i++) {
lookup (index, cases[i].method, cases[i].src_format, cases[i].src_value,
- cases[i].dest_format, cases[i].expecting);
+ cases[i].dest_format, cases[i].expecting);
}
return 0;
diff --git a/testsuite/indexers/indexdump.c b/testsuite/indexers/indexdump.c
index d2f168a8f..ba846b2d6 100644
--- a/testsuite/indexers/indexdump.c
+++ b/testsuite/indexers/indexdump.c
@@ -55,8 +55,8 @@ main (gint argc, gchar * argv[])
while (1) {
gint fx;
GstIndexEntry *entry =
- gst_index_get_assoc_entry (index, id, GST_INDEX_LOOKUP_AFTER, 0,
- GST_FORMAT_TIME, cur);
+ gst_index_get_assoc_entry (index, id, GST_INDEX_LOOKUP_AFTER, 0,
+ GST_FORMAT_TIME, cur);
if (!entry)
break;
@@ -67,11 +67,11 @@ main (gint argc, gchar * argv[])
const GstFormatDefinition *def = gst_format_get_details (fmt);
if (fmt == GST_FORMAT_TIME) {
- cur = GST_INDEX_ASSOC_VALUE (entry, fx) + 1;
- g_print (" time %.4f",
- GST_INDEX_ASSOC_VALUE (entry, fx) / (double) GST_SECOND);
+ cur = GST_INDEX_ASSOC_VALUE (entry, fx) + 1;
+ g_print (" time %.4f",
+ GST_INDEX_ASSOC_VALUE (entry, fx) / (double) GST_SECOND);
} else
- g_print (" %s %lld", def->nick, GST_INDEX_ASSOC_VALUE (entry, fx));
+ g_print (" %s %lld", def->nick, GST_INDEX_ASSOC_VALUE (entry, fx));
}
g_print ("\n");
}
diff --git a/testsuite/parse/parse1.c b/testsuite/parse/parse1.c
index 8bfc50bac..ce51789db 100644
--- a/testsuite/parse/parse1.c
+++ b/testsuite/parse/parse1.c
@@ -126,7 +126,7 @@ main (gint argc, gchar * argv[])
* - if multiple toplevel elements exist, a pipeline is returned
*/
TEST_START (PIPELINE3);
- TEST_CHECK_FAIL (GST_BIN (cur)->numchildren == 3); /* a bit hacky here */
+ TEST_CHECK_FAIL (GST_BIN (cur)->numchildren == 3); /* a bit hacky here */
TEST_CHECK_FAIL (GST_IS_PIPELINE (cur));
TEST_OK;
diff --git a/testsuite/refcounting/pad.c b/testsuite/refcounting/pad.c
index 97377f52b..b394d81ce 100644
--- a/testsuite/refcounting/pad.c
+++ b/testsuite/refcounting/pad.c
@@ -130,14 +130,14 @@ main (int argc, gchar * argv[])
for (i = 0; i < iters; i++) {
padtempl =
- gst_pad_template_new ("sink%d", GST_PAD_SINK, GST_PAD_SOMETIMES, NULL);
+ gst_pad_template_new ("sink%d", GST_PAD_SINK, GST_PAD_SOMETIMES, NULL);
gst_object_unref (GST_OBJECT (padtempl));
}
g_print ("%d padtemplates create/unref %ld\n", iters, vmsize () - usage1);
for (i = 0; i < iters; i++) {
padtempl =
- gst_pad_template_new ("sink%d", GST_PAD_SINK, GST_PAD_SOMETIMES, NULL);
+ gst_pad_template_new ("sink%d", GST_PAD_SINK, GST_PAD_SOMETIMES, NULL);
pad = gst_pad_new_from_template (padtempl, "sink1");
gst_object_unref (GST_OBJECT (pad));
}
diff --git a/testsuite/refcounting/sched.c b/testsuite/refcounting/sched.c
index d1e9379d9..9ed1843c1 100644
--- a/testsuite/refcounting/sched.c
+++ b/testsuite/refcounting/sched.c
@@ -11,8 +11,8 @@ make_and_check_element (gchar * type, gchar * name)
if (element == NULL) {
g_warning
- ("Could not run test, because element type \"%s\" is not installed. Please retry when it is. Assuming it works for now...",
- type);
+ ("Could not run test, because element type \"%s\" is not installed. Please retry when it is. Assuming it works for now...",
+ type);
exit (1);
}
diff --git a/testsuite/threads/thread.c b/testsuite/threads/thread.c
index cc01d9134..3a1324ec3 100644
--- a/testsuite/threads/thread.c
+++ b/testsuite/threads/thread.c
@@ -113,7 +113,7 @@ main (gint argc, gchar * argv[])
g_assert (sink);
g_signal_connect (G_OBJECT (sink), "handoff",
- G_CALLBACK (change_state), pipeline);
+ G_CALLBACK (change_state), pipeline);
gst_element_set_state (pipeline, GST_STATE_PLAYING);
g_print ("running ...\n");
while (gst_bin_iterate (GST_BIN (pipeline)));
diff --git a/testsuite/threads/threadb.c b/testsuite/threads/threadb.c
index ded7d9c79..496cc0076 100644
--- a/testsuite/threads/threadb.c
+++ b/testsuite/threads/threadb.c
@@ -60,7 +60,7 @@ main (gint argc, gchar * argv[])
/* connect state change signal */
id = g_signal_connect (G_OBJECT (thread), "state_change",
- G_CALLBACK (state_changed), NULL);
+ G_CALLBACK (state_changed), NULL);
construct_pipeline (thread);
g_print ("Setting thread to play\n");
diff --git a/testsuite/threads/threadc.c b/testsuite/threads/threadc.c
index c1bf2541e..b5eac467a 100644
--- a/testsuite/threads/threadc.c
+++ b/testsuite/threads/threadc.c
@@ -69,7 +69,7 @@ main (gint argc, gchar * argv[])
/* connect state change signal */
id = g_signal_connect (G_OBJECT (thread), "state_change",
- G_CALLBACK (state_changed), NULL);
+ G_CALLBACK (state_changed), NULL);
construct_pipeline (thread, i / 10 + 1);
g_print ("Setting thread to play with %d identities\n", i / 10 + 1);
@@ -77,7 +77,7 @@ main (gint argc, gchar * argv[])
g_error ("Failed setting thread to play\n");
} else {
g_print ("Going into the main GStreamer loop\n");
- can_quit = TRUE; /* we don't want gst_main_quit called before gst_main */
+ can_quit = TRUE; /* we don't want gst_main_quit called before gst_main */
gst_main ();
}
running = FALSE;
diff --git a/testsuite/threads/threadd.c b/testsuite/threads/threadd.c
index 25a521cf6..84f66d116 100644
--- a/testsuite/threads/threadd.c
+++ b/testsuite/threads/threadd.c
@@ -69,18 +69,18 @@ main (gint argc, gchar * argv[])
/* connect state change signal */
id = g_signal_connect (G_OBJECT (thread), "state_change",
- G_CALLBACK (state_changed), NULL);
+ G_CALLBACK (state_changed), NULL);
construct_pipeline (thread, i / RUNS_PER_IDENTITY + 1);
g_print ("Setting thread to play with %d identities\n",
- i / RUNS_PER_IDENTITY + 1);
+ i / RUNS_PER_IDENTITY + 1);
done = FALSE;
if (gst_element_set_state (thread, GST_STATE_PLAYING) == GST_STATE_FAILURE) {
g_warning ("failed to go to PLAYING");
} else {
g_print ("Waiting for thread PLAYING->PAUSED\n");
- while (!done) /* do nothing */
- ;
+ while (!done) /* do nothing */
+ ;
}
running = FALSE;
g_print ("Coming out of the main GStreamer loop\n");
diff --git a/testsuite/threads/threade.c b/testsuite/threads/threade.c
index 169c53813..8f11763e1 100644
--- a/testsuite/threads/threade.c
+++ b/testsuite/threads/threade.c
@@ -72,7 +72,7 @@ main (gint argc, gchar * argv[])
g_print ("Created GThread\n");
g_print ("Waiting for thread PLAYING->PAUSED\n");
- while (!done) /* do nothing */
+ while (!done) /* do nothing */
;
running = FALSE;
g_print ("Unreffing pipeline\n");