From 7a7d7886cd7428e72c95d2411b5d2efd2505a90c Mon Sep 17 00:00:00 2001 From: Josep Torra Date: Wed, 21 Sep 2011 14:26:43 +0200 Subject: 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. --- tests/test-rgb-upload.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/test-rgb-upload.c') 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", -- cgit v1.2.1