~openshot.code/openshot/main

« back to all changes in this revision

Viewing changes to openshot/classes/clip.py

  • Committer: Jonathan Thomas
  • Date: 2012-09-30 21:33:20 UTC
  • Revision ID: jonathan.oomph@gmail.com-20120930213320-1g6rindumeujfpra
Fixed "length" to be 1 greater than "out" attribute.  Also, removed conditional code for "background track".

Show diffs side-by-side

added added

removed removed

Lines of Context:
423
423
                producer.setAttribute("novdpau", "1")
424
424
                producer.setAttribute("in", str(int(round(in_frame_number))))
425
425
                producer.setAttribute("out", str(int(round(out_frame_number))))
426
 
                
427
 
                if self.parent.name != "Background Track":
428
 
                        producer.setAttribute("length", str(int(round(out_frame_number))))
 
426
                producer.setAttribute("length", str(int(round(out_frame_number) + 1)))
429
427
 
430
428
                # hide video (if needed)
431
429
                if self.play_video == False or self.parent.play_video == False: