[pitivi] factories: Gracefully handle lack of videoscal::add-borders



commit 9d62474e7dc374a5ca8a77cfa448f7e415922c76
Author: Edward Hervey <bilboed bilboed com>
Date:   Sun Sep 5 11:10:15 2010 +0200

    factories: Gracefully handle lack of videoscal::add-borders
    
    We'll add this to the "known bugs" section of the upcoming release
    for people who don't have recent enough -base.
    
    Fixes #625984

 pitivi/factories/base.py |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/pitivi/factories/base.py b/pitivi/factories/base.py
index 3db951e..e2baee4 100644
--- a/pitivi/factories/base.py
+++ b/pitivi/factories/base.py
@@ -423,7 +423,10 @@ class SourceFactory(ObjectFactory):
             b.alpha = gst.element_factory_make("alpha", "internal-alpha")
             b.alpha.props.prefer_passthrough = True
             b.scale = gst.element_factory_make("videoscale")
-            b.scale.props.add_borders = True
+            try:
+                b.scale.props.add_borders = True
+            except:
+                self.warning("User has old version of videoscale. add-border not enabled")
             b.capsfilter = gst.element_factory_make("capsfilter")
             self.setFilterCaps(self._filtercaps, b)
 



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