[pitivi] smartscale: add a workaround for bug #574805 in gs



commit 20e9274dc34b5b5a9e8fbc6d62e9ae5974653472
Author: Alessandro Decina <alessandro decina collabora co uk>
Date:   Tue Mar 10 19:48:44 2009 +0100

    smartscale: add a workaround for bug #574805 in gst core.
---
 pitivi/elements/smartscale.py |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/pitivi/elements/smartscale.py b/pitivi/elements/smartscale.py
index 01ab3e0..a149b2b 100644
--- a/pitivi/elements/smartscale.py
+++ b/pitivi/elements/smartscale.py
@@ -142,7 +142,10 @@ class SmartVideoScale(gst.Bin):
         self.log("outgoing width/height/PAR/DAR : %d/%d/%r/%r" % (self.widthout, self.heightout,
                                                                   self.parout, self.darout))
 
-        if self.darin == self.darout:
+
+        # for core <= 0.10.22 we always set caps != any, see 574805 for the
+        # details
+        if self.darin == self.darout and gst.version() >= (0, 10, 23):
             self.log("We have same input and output caps, resetting capsfilter and videobox settings")
             # same DAR, set inputcaps on capsfilter, reset videobox values
             caps = gst.caps_new_any()



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