[pitivi: 5/9] test.py, base.py: keys in interpolated property dict now represent min/max value overrides. override



commit 24a934d0c80ad9949b5934be4a49775c2f44aca6
Author: Brandon Lewis <brandon_lewis berkeley edu>
Date:   Mon Jul 27 11:47:36 2009 -0700

    test.py, base.py: keys in interpolated property dict now represent min/max value overrides. override volume property max

 pitivi/factories/file.py |    4 ++--
 pitivi/factories/test.py |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/pitivi/factories/file.py b/pitivi/factories/file.py
index a131eff..8cc4f0a 100644
--- a/pitivi/factories/file.py
+++ b/pitivi/factories/file.py
@@ -47,9 +47,9 @@ class FileSourceFactory(RandomAccessSourceFactory):
         props = RandomAccessSourceFactory.getInterpolatedProperties(self, 
             stream)
         if isinstance(stream, AudioStream):
-            props.update({"volume" : (float, 0.5)})
+            props.update({"volume" : (0.0, 5.0)})
         elif isinstance(stream, VideoStream):
-            props.update({"alpha" : (float, 0.5)})
+            props.update({"alpha" : None})
         return props
 
 class PictureFileSourceFactory(FileSourceFactory):
diff --git a/pitivi/factories/test.py b/pitivi/factories/test.py
index de6202f..221ca12 100644
--- a/pitivi/factories/test.py
+++ b/pitivi/factories/test.py
@@ -90,6 +90,6 @@ class AudioTestSourceFactory(SourceFactory):
 
     def getInterpolatedProperties(self, stream):
         props = SourceFactory.getInterpolatedProperties(self, stream)
-        props.update({"volume": 1.0})
+        props.update({"volume": None})
         return props
 



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