[pitivi] ui.previewer: Use stream Display Aspect Ratio for proper thumbnails.
- From: Edward Hervey <edwardrv src gnome org>
- To: svn-commits-list gnome org
- Subject: [pitivi] ui.previewer: Use stream Display Aspect Ratio for proper thumbnails.
- Date: Tue, 12 May 2009 11:08:11 -0400 (EDT)
commit e0f10ac63b9fe1626f58a0df9f44e3b8e7a667ae
Author: Edward Hervey <bilboed bilboed com>
Date: Tue May 12 12:24:44 2009 +0200
ui.previewer: Use stream Display Aspect Ratio for proper thumbnails.
I have no idea what that previous calculation was trying to do.
---
pitivi/ui/previewer.py | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/pitivi/ui/previewer.py b/pitivi/ui/previewer.py
index 6d5cae5..0ac7584 100644
--- a/pitivi/ui/previewer.py
+++ b/pitivi/ui/previewer.py
@@ -343,8 +343,7 @@ class RandomAccessVideoPreviewer(RandomAccessPreviewer):
def __init__(self, factory, stream_):
if stream_.dar and stream_.par:
- self.aspect = ((float(stream_.dar.num) * stream_.par.denom) /
- (stream_.dar.denom * stream_.par.num))
+ self.aspect = float(stream_.dar)
RandomAccessPreviewer.__init__(self, factory, stream_)
def _pipelineInit(self, factory, sbin):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]