[pitivi: 2/10] really take into account the thumbnail aspect ratio



commit 9a7f64f952b5507f341b07926ab8bc39107f0eaa
Author: Brandon Lewis <brandon_lewis berkeley edu>
Date:   Sat Mar 28 09:51:41 2009 -0700

    really take into account the thumbnail aspect ratio
---
 pitivi/ui/previewer.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/pitivi/ui/previewer.py b/pitivi/ui/previewer.py
index f2319f8..22c3e74 100644
--- a/pitivi/ui/previewer.py
+++ b/pitivi/ui/previewer.py
@@ -293,7 +293,7 @@ class RandomAccessVideoPreviewer(RandomAccessPreviewer):
 
     def __init__(self, factory, stream_):
         if stream_.dar and stream_.par:
-            self.aspect = float(stream_.dar)
+            self.aspect = float(stream_.dar / stream_.par)
         RandomAccessPreviewer.__init__(self, factory, stream_)
 
     def _pipelineInit(self, factory, sbin):



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