]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix reference to undefined 'memsize' in calcnframes().
authorGuido van Rossum <guido@python.org>
Tue, 26 Oct 1993 10:23:14 +0000 (10:23 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 26 Oct 1993 10:23:14 +0000 (10:23 +0000)
Demo/sgi/video/Vb.py

index c7e7fcc91b9794045758b9758d3e604c62f48b38..2596ca50394016f5e41f7cb1859182d67092f017 100755 (executable)
@@ -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