add dependencies

This commit is contained in:
j 2010-11-25 15:11:16 +01:00
parent 693a12353a
commit 32a4b567f4

View file

@ -126,7 +126,7 @@ class Timeline(Video):
# we know we're prerolled when we get the initial thumbnail # we know we're prerolled when we get the initial thumbnail
self._ready = True self._ready = True
else: else:
_framePos = int(math.ceil((float(timestamp) / (gst.SECOND) * float(self.framerate)))) _framePos = int(math.ceil((float(timestamp) / (gst.SECOND) * float(self.framerate)))) + 1
frame = frame.resize((1, self.tile_height), Image.ANTIALIAS) frame = frame.resize((1, self.tile_height), Image.ANTIALIAS)
for framePos in range(self.lastPos, _framePos): for framePos in range(self.lastPos, _framePos):
tile = int(math.floor(float(framePos) / self.input_tile_width)) tile = int(math.floor(float(framePos) / self.input_tile_width))