← Back to team overview

openshot.code team mailing list archive

[Branch ~openshot.code/openshot/main] Rev 732: Fixed a bug where "length" was being set incorrectly on MLT producer nodes. Now "length" and "ou...

 

------------------------------------------------------------
revno: 732
fixes bug: https://launchpad.net/bugs/1059239
committer: Jonathan Thomas <Jonathan.Oomph@xxxxxxxxx>
branch nick: openshot
timestamp: Sun 2012-09-30 15:53:56 -0500
message:
  Fixed a bug where "length" was being set incorrectly on MLT producer nodes.  Now "length" and "out" are set to the same values.
modified:
  openshot/classes/clip.py


--
lp:openshot
https://code.launchpad.net/~openshot.code/openshot/main

Your team OpenShot Code is subscribed to branch lp:openshot.
To unsubscribe from this branch go to https://code.launchpad.net/~openshot.code/openshot/main/+edit-subscription
=== modified file 'openshot/classes/clip.py'
--- openshot/classes/clip.py	2012-09-29 00:28:36 +0000
+++ openshot/classes/clip.py	2012-09-30 20:53:56 +0000
@@ -425,7 +425,7 @@
 		producer.setAttribute("out", str(int(round(out_frame_number))))
 		
 		if self.parent.name != "Background Track":
-			producer.setAttribute("length", str((out_frame_number - in_frame_number) + 1))
+			producer.setAttribute("length", str(int(round(out_frame_number))))
 
 		# hide video (if needed)
 		if self.play_video == False or self.parent.play_video == False: