[pitivi: 9/28] project.py: get the full video caps from our settings, since we can handle this now



commit 9f784f137f91fdcfd46c8070e3ea1505f5530b96
Author: Brandon Lewis <brandon_lewis alum berkeley edu>
Date:   Fri Feb 5 15:04:39 2010 -0800

    project.py: get the full video caps from our settings, since we can handle
    this now

 pitivi/project.py |   17 +++++++++--------
 1 files changed, 9 insertions(+), 8 deletions(-)
---
diff --git a/pitivi/project.py b/pitivi/project.py
index fd47ef9..61722f8 100644
--- a/pitivi/project.py
+++ b/pitivi/project.py
@@ -99,14 +99,15 @@ class Project(Signallable, Loggable):
 
     def getCapsFromSettings(self):
         settings = self.getSettings()
-        formatstr = "video/x-raw-rgb,width=(int)%d,height=(int)%d;"\
-            "video/x-raw-yuv,width=(int)%d,height=(int)%d"
-        capstr = formatstr % (
-            settings.videowidth,
-            settings.videoheight,
-            settings.videowidth,
-            settings.videoheight)
-        self._videocaps = gst.Caps(capstr)
+        #formatstr = "video/x-raw-rgb,width=(int)%d,height=(int)%d;"\
+        #    "video/x-raw-yuv,width=(int)%d,height=(int)%d"
+        #capstr = formatstr % (
+        #    settings.videowidth,
+        #    settings.videoheight,
+        #    settings.videowidth,
+        #    settings.videoheight)
+        #self._videocaps = gst.Caps(capstr)
+        self._videocaps = settings.getVideoCaps()
 
     def release(self):
         self.pipeline.release()



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