[aravis] viewer: prevent use of coglsink



commit 85e2bb98bb7e110f5e2c63d7a67a61ec875f77ef
Author: Emmanuel Pacaud <emmanuel gnome org>
Date:   Sat Oct 4 23:31:16 2014 +0200

    viewer: prevent use of coglsink
    
    This plugins doesn't seem to work for us, just disable it for now.

 viewer/arvviewer.c |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/viewer/arvviewer.c b/viewer/arvviewer.c
index ba8476f..431a21a 100644
--- a/viewer/arvviewer.c
+++ b/viewer/arvviewer.c
@@ -847,6 +847,7 @@ static gboolean
 _gstreamer_plugin_check (void)
 {
        GstRegistry *registry;
+       GstPluginFeature *feature;
        unsigned int i;
        gboolean success = TRUE;
 
@@ -861,8 +862,6 @@ _gstreamer_plugin_check (void)
        registry = gst_registry_get ();
 
        for (i = 0; i < G_N_ELEMENTS (plugins); i++) {
-               GstPluginFeature *feature;
-       
                feature = gst_registry_lookup_feature (registry, plugins[i]);
                if (!GST_IS_PLUGIN_FEATURE (feature)) {
                        g_print ("Gstreamer plugin '%s' is missing.\n", plugins[i]);
@@ -876,6 +875,13 @@ _gstreamer_plugin_check (void)
        if (!success)
                g_print ("Check your gstreamer installation.\n");
 
+       /* Kludge, prevent autoloading of coglsink, which doesn't seem to work for us */
+       feature = gst_registry_lookup_feature (registry, "coglsink");
+       if (GST_IS_PLUGIN_FEATURE (feature)) {
+               gst_plugin_feature_set_rank (feature, GST_RANK_NONE);
+               g_object_unref (feature);
+       }
+
        return success;
 }
 


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