From 546185075cbfde306021d8cbf913a1a575286eb0 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Tue, 26 Oct 1993 10:23:14 +0000 Subject: Fix reference to undefined 'memsize' in calcnframes(). --- Demo/sgi/video/Vb.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Demo/sgi/video/Vb.py b/Demo/sgi/video/Vb.py index c7e7fcc..2596ca5 100755 --- a/Demo/sgi/video/Vb.py +++ b/Demo/sgi/video/Vb.py @@ -476,7 +476,7 @@ class VideoBagOfTricks: if nframes == 0: maxmem = self.getint(self.in_maxmem, 1.0) memsize = int(maxmem * 1024 * 1024) - nframes = self.calcnframes() + nframes = self.calcnframes(memsize) info = (vformat, x, y, nframes, 1) try: info2, data, bitvec = self.video.CaptureBurst(info) @@ -489,7 +489,7 @@ class VideoBagOfTricks: self.save_burst(info2, data, bitvec) self.setarrow() - def calcnframes(self): + def calcnframes(self, memsize): gl.winset(self.window) x, y = gl.getsize() pixels = x*y -- cgit v0.12