[totem] backend: Update for clutter-gst deprecations



commit 09a7b18c3b94abc57fd1f258c2242653b98b04a2
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Apr 17 18:15:48 2012 +0100

    backend: Update for clutter-gst deprecations

 configure.in                              |    2 +-
 src/backend/bacon-video-widget-gst-0.10.c |    5 +++--
 2 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/configure.in b/configure.in
index f0ce265..2fabde7 100644
--- a/configure.in
+++ b/configure.in
@@ -81,7 +81,7 @@ GST_MAJORMINOR=0.10
 GST_REQS=0.10.30
 GSTPLUG_REQS=0.10.30
 CLUTTER_REQS=1.6.8
-CLUTTER_GST_REQS=1.3.9
+CLUTTER_GST_REQS=1.5.5
 CLUTTER_GTK_REQS=1.0.2
 
 HAVE_GSTREAMER=no
diff --git a/src/backend/bacon-video-widget-gst-0.10.c b/src/backend/bacon-video-widget-gst-0.10.c
index 1cf2c72..a8c3926 100644
--- a/src/backend/bacon-video-widget-gst-0.10.c
+++ b/src/backend/bacon-video-widget-gst-0.10.c
@@ -5932,8 +5932,7 @@ bacon_video_widget_initable_init (GInitable     *initable,
   bvw->priv->texture = g_object_new (CLUTTER_TYPE_TEXTURE,
 				     "disable-slicing", TRUE,
 				     NULL);
-  sink = clutter_gst_video_sink_new (CLUTTER_TEXTURE (bvw->priv->texture));
-  bvw->priv->navigation = GST_NAVIGATION (sink);
+  sink = gst_element_factory_make ("cluttersink", NULL);
   if (sink == NULL) {
     g_critical ("Could not create Clutter video sink");
     g_set_error_literal (error, BVW_ERROR, BVW_ERROR_PLUGIN_LOAD,
@@ -5941,6 +5940,8 @@ bacon_video_widget_initable_init (GInitable     *initable,
                    "Please check your GStreamer installation."));
     return FALSE;
   }
+  g_object_set (G_OBJECT (sink), "texture", bvw->priv->texture, NULL);
+  bvw->priv->navigation = GST_NAVIGATION (sink);
   gst_bin_add (GST_BIN (bin), sink);
 
   /* The logo */



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