summaryrefslogtreecommitdiff
path: root/tests/test-rgb-upload.c
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/test-rgb-upload.c
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/test-rgb-upload.c')
-rw-r--r--tests/test-rgb-upload.c3
1 files changed, 2 insertions, 1 deletions
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",