[pitivi] effects: Add a plugins blacklist and blacklist ladspa.



commit 9f2a63fea47e7de10577c4212b4ee891324d6f24
Author: Thibault Saunier <thibault saunier collabora co uk>
Date:   Tue May 24 13:35:06 2011 -0400

    effects: Add a plugins blacklist and blacklist ladspa.
    
    This is related to #650985

 pitivi/effects.py |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/pitivi/effects.py b/pitivi/effects.py
index 9224651..941b02a 100644
--- a/pitivi/effects.py
+++ b/pitivi/effects.py
@@ -55,6 +55,8 @@ BLACKLISTED_EFFECTS = ["colorconvert", "coglogoinsert", "festival",
                        "alphacolor", "cogcolorspace", "videodetect",
                        "navigationtest", "videoanalyse"]
 
+#We should unblacklist it when #650985 is solved
+BLACKLISTED_PLUGINS = ["ldaspa"]
 
 class EffectsHandler(object):
     """
@@ -130,7 +132,8 @@ class EffectsHandler(object):
         for element_factory in factlist:
             klass = element_factory.get_klass()
             name = element_factory.get_name()
-            if "Effect" in klass and name not in BLACKLISTED_EFFECTS:
+            if "Effect" in klass and name not in BLACKLISTED_EFFECTS and not\
+                [bplug for bplug in BLACKLISTED_PLUGINS if bplug in name]:
                 effect = EffectFactory(name, name,
                                    self._getEffectCategories(name),
                                    self._getEffectName(element_factory),



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