only one place to define height

This commit is contained in:
j 2008-01-02 07:34:31 +00:00
parent 48e7697310
commit d9971f3c66

View file

@ -96,7 +96,7 @@ class GstTimeline:
img = Image.fromstring('RGB',input_d, gst_buffer) img = Image.fromstring('RGB',input_d, gst_buffer)
img = img.resize((1, bar_height), Image.ANTIALIAS) img = img.resize((1, bar_height), Image.ANTIALIAS)
self.frames += 1 self.frames += 1
for i in range(height): for i in range(bar_height):
self.bar.putpixel((self.frames, i), img.getpixel((0,i))) self.bar.putpixel((self.frames, i), img.getpixel((0,i)))
if self.frames >= self.width_part and self.frames > 30: if self.frames >= self.width_part and self.frames > 30:
self.cropAndSave() self.cropAndSave()