summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1993-10-26 10:23:14 (GMT)
committerGuido van Rossum <guido@python.org>1993-10-26 10:23:14 (GMT)
commit546185075cbfde306021d8cbf913a1a575286eb0 (patch)
treec126d66db17a5466e3684609e673d71394a72537
parent5a2a683e7299a8d8f03c7125c22eb813e3030808 (diff)
downloadcpython-546185075cbfde306021d8cbf913a1a575286eb0.zip
cpython-546185075cbfde306021d8cbf913a1a575286eb0.tar.gz
cpython-546185075cbfde306021d8cbf913a1a575286eb0.tar.bz2
Fix reference to undefined 'memsize' in calcnframes().
-rwxr-xr-xDemo/sgi/video/Vb.py4
1 files 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