summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test-rgb-upload.c22
-rw-r--r--tests/test-yuv-upload.c15
2 files changed, 19 insertions, 18 deletions
diff --git a/tests/test-rgb-upload.c b/tests/test-rgb-upload.c
index 0887dad..a91a307 100644
--- a/tests/test-rgb-upload.c
+++ b/tests/test-rgb-upload.c
@@ -125,15 +125,15 @@ main (int argc, char *argv[])
/* We need to set certain props on the target texture currently for
* efficient/corrent playback onto the texture (which sucks a bit)
- */
+ */
texture = g_object_new (CLUTTER_TYPE_TEXTURE,
"sync-size", FALSE,
"disable-slicing", TRUE,
NULL);
g_signal_connect (CLUTTER_TEXTURE (texture),
- "size-change",
- G_CALLBACK (size_change), NULL);
+ "size-change",
+ G_CALLBACK (size_change), NULL);
/* Set up pipeline */
pipeline = GST_PIPELINE(gst_pipeline_new (NULL));
@@ -146,22 +146,22 @@ main (int argc, char *argv[])
/* make videotestsrc spit the format we want */
caps = gst_caps_new_simple ("video/x-raw-rgb",
- "bpp", G_TYPE_INT, opt_bpp,
- "depth", G_TYPE_INT, opt_depth,
- "framerate", GST_TYPE_FRACTION, opt_framerate, 1,
+ "bpp", G_TYPE_INT, opt_bpp,
+ "depth", G_TYPE_INT, opt_depth,
+ "framerate", GST_TYPE_FRACTION, opt_framerate, 1,
#if 0
- "red_mask", G_TYPE_INT, 0xff000000,
- "green_mask", G_TYPE_INT, 0x00ff0000,
- "blue_mask", G_TYPE_INT, 0x0000ff00,
+ "red_mask", G_TYPE_INT, 0xff000000,
+ "green_mask", G_TYPE_INT, 0x00ff0000,
+ "blue_mask", G_TYPE_INT, 0x0000ff00,
#endif
- NULL);
+ NULL);
g_object_set (capsfilter, "caps", caps, NULL);
g_printf ("%s: [caps] %s\n", __FILE__, gst_caps_to_string (caps));
gst_bin_add_many (GST_BIN (pipeline), src, capsfilter, sink, NULL);
result = gst_element_link_many (src, capsfilter, sink, NULL);
if (result == FALSE)
- g_critical("Could not link elements");
+ g_critical("Could not link elements");
gst_element_set_state (GST_ELEMENT(pipeline), GST_STATE_PLAYING);
clutter_group_add (CLUTTER_GROUP (stage), texture);
diff --git a/tests/test-yuv-upload.c b/tests/test-yuv-upload.c
index 8572558..a319f5e 100644
--- a/tests/test-yuv-upload.c
+++ b/tests/test-yuv-upload.c
@@ -124,15 +124,15 @@ main (int argc, char *argv[])
/* We need to set certain props on the target texture currently for
* efficient/corrent playback onto the texture (which sucks a bit)
- */
+ */
texture = g_object_new (CLUTTER_TYPE_TEXTURE,
"sync-size", FALSE,
"disable-slicing", TRUE,
NULL);
g_signal_connect (CLUTTER_TEXTURE (texture),
- "size-change",
- G_CALLBACK (size_change), NULL);
+ "size-change",
+ G_CALLBACK (size_change), NULL);
/* Set up pipeline */
pipeline = GST_PIPELINE(gst_pipeline_new (NULL));
@@ -143,16 +143,17 @@ main (int argc, char *argv[])
/* make videotestsrc spit the format we want */
caps = gst_caps_new_simple ("video/x-raw-yuv",
- "format", GST_TYPE_FOURCC, parse_fourcc (opt_fourcc),
- "framerate", GST_TYPE_FRACTION, opt_framerate, 1,
- NULL);
+ "format", GST_TYPE_FOURCC,
+ parse_fourcc (opt_fourcc),
+ "framerate", GST_TYPE_FRACTION, opt_framerate, 1,
+ NULL);
g_object_set (capsfilter, "caps", caps, NULL);
g_printf ("%s: [caps] %s\n", __FILE__, gst_caps_to_string (caps));
gst_bin_add_many (GST_BIN (pipeline), src, capsfilter, sink, NULL);
result = gst_element_link_many (src, capsfilter, sink, NULL);
if (result == FALSE)
- g_critical("Could not link elements");
+ g_critical("Could not link elements");
gst_element_set_state (GST_ELEMENT(pipeline), GST_STATE_PLAYING);
clutter_group_add (CLUTTER_GROUP (stage), texture);