diff options
author | Guido van Rossum <guido@python.org> | 1993-10-26 10:23:14 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1993-10-26 10:23:14 (GMT) |
commit | 546185075cbfde306021d8cbf913a1a575286eb0 (patch) | |
tree | c126d66db17a5466e3684609e673d71394a72537 /Demo/sgi/video/Vb.py | |
parent | 5a2a683e7299a8d8f03c7125c22eb813e3030808 (diff) | |
download | cpython-546185075cbfde306021d8cbf913a1a575286eb0.zip cpython-546185075cbfde306021d8cbf913a1a575286eb0.tar.gz cpython-546185075cbfde306021d8cbf913a1a575286eb0.tar.bz2 |
Fix reference to undefined 'memsize' in calcnframes().
Diffstat (limited to 'Demo/sgi/video/Vb.py')
-rwxr-xr-x | Demo/sgi/video/Vb.py | 4 |
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 |