summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJosep Torra <n770galaxy@gmail.com>2011-09-21 14:26:43 +0200
committerDamien Lespiau <damien.lespiau@intel.com>2011-11-02 17:52:39 +0000
commit7a7d7886cd7428e72c95d2411b5d2efd2505a90c (patch)
tree1c39099a2c603720b7ba60b6044fdf3a27d67fe9 /tests
parent76d911db3b3e9ac8734b52dc41f83c1e528286a8 (diff)
downloadclutter-gst-7a7d7886cd7428e72c95d2411b5d2efd2505a90c.tar.gz
tests, examples: switch to new API to instantiate the videosink
Change the application related code to use the new preferred API to create the sink.
Diffstat (limited to 'tests')
-rw-r--r--tests/test-alpha.c3
-rw-r--r--tests/test-rgb-upload.c3
-rw-r--r--tests/test-yuv-upload.c3
3 files changed, 6 insertions, 3 deletions
diff --git a/tests/test-alpha.c b/tests/test-alpha.c
index 693905c..79786c9 100644
--- a/tests/test-alpha.c
+++ b/tests/test-alpha.c
@@ -165,7 +165,8 @@ main (int argc, char *argv[])
src = gst_element_factory_make ("videotestsrc", NULL);
g_object_set (G_OBJECT (src), "pattern", 1, NULL);
capsfilter = gst_element_factory_make ("capsfilter", NULL);
- sink = clutter_gst_video_sink_new (CLUTTER_TEXTURE (texture));
+ sink = gst_element_factory_make ("cluttersink", NULL);
+ g_object_set (G_OBJECT (sink), "texture", CLUTTER_TEXTURE (texture), NULL);
/* make videotestsrc spit the format we want */
if (g_strcmp0 (opt_fourcc, "RGB ") == 0)
diff --git a/tests/test-rgb-upload.c b/tests/test-rgb-upload.c
index f47c99b..57dde63 100644
--- a/tests/test-rgb-upload.c
+++ b/tests/test-rgb-upload.c
@@ -149,7 +149,8 @@ main (int argc, char *argv[])
src = gst_element_factory_make ("videotestsrc", NULL);
capsfilter = gst_element_factory_make ("capsfilter", NULL);
- sink = clutter_gst_video_sink_new (CLUTTER_TEXTURE (texture));
+ sink = gst_element_factory_make ("cluttersink", NULL);
+ g_object_set (sink, "texture", CLUTTER_TEXTURE (texture), NULL);
/* make videotestsrc spit the format we want */
caps = gst_caps_new_simple ("video/x-raw-rgb",
diff --git a/tests/test-yuv-upload.c b/tests/test-yuv-upload.c
index dc7a15a..ca1ff18 100644
--- a/tests/test-yuv-upload.c
+++ b/tests/test-yuv-upload.c
@@ -147,7 +147,8 @@ main (int argc, char *argv[])
src = gst_element_factory_make ("videotestsrc", NULL);
capsfilter = gst_element_factory_make ("capsfilter", NULL);
- sink = clutter_gst_video_sink_new (CLUTTER_TEXTURE (texture));
+ sink = gst_element_factory_make ("cluttersink", NULL);
+ g_object_set (sink, "texture", CLUTTER_TEXTURE (texture), NULL);
/* make videotestsrc spit the format we want */
caps = gst_caps_new_simple ("video/x-raw-yuv",