timeline width should never be 0

This commit is contained in:
j 2007-12-08 13:40:04 +00:00
parent e022c47961
commit c9ba3dfa89
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ class GstTimeline:
def cropAndSave(self):
if self.frames:
mini_width = int(self.frames / self.fps)
mini_width = int(math.ceil(float(self.frames) / self.fps))
mini_width = min(mini_width, bar_part_time)
#crop if segment is shorter
c = self.bar.crop((0, 0, self.frames,bar_height))