only one place to define height
This commit is contained in:
parent
48e7697310
commit
d9971f3c66
1 changed files with 1 additions and 1 deletions
|
@ -96,7 +96,7 @@ class GstTimeline:
|
|||
img = Image.fromstring('RGB',input_d, gst_buffer)
|
||||
img = img.resize((1, bar_height), Image.ANTIALIAS)
|
||||
self.frames += 1
|
||||
for i in range(height):
|
||||
for i in range(bar_height):
|
||||
self.bar.putpixel((self.frames, i), img.getpixel((0,i)))
|
||||
if self.frames >= self.width_part and self.frames > 30:
|
||||
self.cropAndSave()
|
||||
|
|
Loading…
Reference in a new issue