pitivi r1436 - trunk/pitivi/ui
- From: edwardrv svn gnome org
- To: svn-commits-list gnome org
- Subject: pitivi r1436 - trunk/pitivi/ui
- Date: Tue, 2 Dec 2008 10:47:06 +0000 (UTC)
Author: edwardrv
Date: Tue Dec 2 10:47:05 2008
New Revision: 1436
URL: http://svn.gnome.org/viewvc/pitivi?rev=1436&view=rev
Log:
Compute DAR as width / height for the default pipeline.
Fixes a traceback introduced in 36162c452cdf9f637658e1e92484d66dcd19536b
when removing all the objects from the timeline.
Patch by Alessandro Decina <alessandro dot d at gmail dot con>
Modified:
trunk/pitivi/ui/viewer.py
Modified: trunk/pitivi/ui/viewer.py
==============================================================================
--- trunk/pitivi/ui/viewer.py (original)
+++ trunk/pitivi/ui/viewer.py Tue Dec 2 10:47:05 2008
@@ -418,9 +418,10 @@
if isinstance(smartbin, SmartTimelineBin):
seti = smartbin.project.getSettings()
dar = float(seti.videowidth * seti.videopar.num) / float(seti.videoheight * seti.videopar.denom)
- self.setDisplayAspectRatio(dar)
- else:
+ elif hasattr(smartbin, 'factory'):
dar = smartbin.factory.video_info_stream.dar
+ else:
+ dar = smartbin.width / smartbin.height
self.setDisplayAspectRatio(dar)
def _currentStateCb(self, unused_playground, state):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]