[rhythmbox] use gst_element_factory_make to create clutter sink



commit ec3adbf0f64ab09b3ed734b4058155bce847fed8
Author: Jonathan Matthew <jonathan d14n org>
Date:   Sat Jul 21 16:56:52 2012 +1000

    use gst_element_factory_make to create clutter sink

 plugins/visualizer/rb-visualizer-page.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/plugins/visualizer/rb-visualizer-page.c b/plugins/visualizer/rb-visualizer-page.c
index f7f69df..b73f702 100644
--- a/plugins/visualizer/rb-visualizer-page.c
+++ b/plugins/visualizer/rb-visualizer-page.c
@@ -370,7 +370,8 @@ impl_constructed (GObject *object)
 	g_object_ref (page->sink);
 
 	/* actual sink */
-	realsink = clutter_gst_video_sink_new (CLUTTER_TEXTURE (page->texture));
+	realsink = gst_element_factory_make ("cluttersink", NULL);
+	g_object_set (realsink, "texture", page->texture, NULL);
 
 	colorspace = gst_element_factory_make ("ffmpegcolorspace", NULL);
 	/* capsfilter to force rgb format (without this we end up using ayuv) */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]