openshot.code team mailing list archive
-
openshot.code team
-
Mailing list archive
-
Message #00661
[Branch ~openshot.code/openshot/main] Rev 733: Fixed "length" to be 1 greater than "out" attribute. Also, removed conditional code for "backgro...
------------------------------------------------------------
revno: 733
committer: Jonathan Thomas <Jonathan.Oomph@xxxxxxxxx>
branch nick: openshot
timestamp: Sun 2012-09-30 16:33:20 -0500
message:
Fixed "length" to be 1 greater than "out" attribute. Also, removed conditional code for "background track".
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-30 20:53:56 +0000
+++ openshot/classes/clip.py 2012-09-30 21:33:20 +0000
@@ -423,9 +423,7 @@
producer.setAttribute("novdpau", "1")
producer.setAttribute("in", str(int(round(in_frame_number))))
producer.setAttribute("out", str(int(round(out_frame_number))))
-
- if self.parent.name != "Background Track":
- producer.setAttribute("length", str(int(round(out_frame_number))))
+ producer.setAttribute("length", str(int(round(out_frame_number) + 1)))
# hide video (if needed)
if self.play_video == False or self.parent.play_video == False: