[totem/gnome-3-8] backend: Fix running with clutter-gst in different prefix



commit b966422cfd9d1e81c75613383ba041efc7d6f1fd
Author: Bastien Nocera <hadess hadess net>
Date:   Mon Mar 18 11:44:50 2013 +0100

    backend: Fix running with clutter-gst in different prefix
    
    We did not call clutter_gst_init(), so the cluttersink plugin would
    not be registered. This meant that we just happened to be able to
    get the sink through its (deprecated) stand-alone plugin.
    
    Calling clutter_gst_init() means that we don't need to rely on
    libgstclutter.so being available in the GStreamer plugin directory
    of the prefix for us to be able to find it.

 src/backend/bacon-video-widget.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/backend/bacon-video-widget.c b/src/backend/bacon-video-widget.c
index c38881e..5fd2843 100644
--- a/src/backend/bacon-video-widget.c
+++ b/src/backend/bacon-video-widget.c
@@ -764,6 +764,8 @@ bacon_video_widget_class_init (BaconVideoWidgetClass * klass)
   GObjectClass *object_class;
   GtkWidgetClass *widget_class;
 
+  clutter_gst_init (NULL, NULL);
+
   object_class = (GObjectClass *) klass;
   widget_class = (GtkWidgetClass *) klass;
 


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