Fix reference to undefined 'memsize' in calcnframes().

This commit is contained in:
Guido van Rossum 1993-10-26 10:23:14 +00:00
parent 5a2a683e72
commit 546185075c
1 changed files with 2 additions and 2 deletions

View File

@ -476,7 +476,7 @@ class VideoBagOfTricks:
if nframes == 0: if nframes == 0:
maxmem = self.getint(self.in_maxmem, 1.0) maxmem = self.getint(self.in_maxmem, 1.0)
memsize = int(maxmem * 1024 * 1024) memsize = int(maxmem * 1024 * 1024)
nframes = self.calcnframes() nframes = self.calcnframes(memsize)
info = (vformat, x, y, nframes, 1) info = (vformat, x, y, nframes, 1)
try: try:
info2, data, bitvec = self.video.CaptureBurst(info) info2, data, bitvec = self.video.CaptureBurst(info)
@ -489,7 +489,7 @@ class VideoBagOfTricks:
self.save_burst(info2, data, bitvec) self.save_burst(info2, data, bitvec)
self.setarrow() self.setarrow()
def calcnframes(self): def calcnframes(self, memsize):
gl.winset(self.window) gl.winset(self.window)
x, y = gl.getsize() x, y = gl.getsize()
pixels = x*y pixels = x*y