diff options
author | Guido van Rossum <guido@python.org> | 1991-11-04 18:14:23 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1991-11-04 18:14:23 (GMT) |
commit | b3c493cdd87b6a0f183893e3c5b71844dbb6e995 (patch) | |
tree | 0935ff66d4c40fca7ff9c7e5970c8f5eb90ce176 /Demo/sgi/video | |
parent | 228381e0c244126d2ed561866a5086fc534c8ae0 (diff) | |
download | cpython-b3c493cdd87b6a0f183893e3c5b71844dbb6e995.zip cpython-b3c493cdd87b6a0f183893e3c5b71844dbb6e995.tar.gz cpython-b3c493cdd87b6a0f183893e3c5b71844dbb6e995.tar.bz2 |
Fix third arg (audio skip).
Diffstat (limited to 'Demo/sgi/video')
-rwxr-xr-x | Demo/sgi/video/video.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Demo/sgi/video/video.py b/Demo/sgi/video/video.py index 7c34e7a..df74d00 100755 --- a/Demo/sgi/video/video.py +++ b/Demo/sgi/video/video.py @@ -95,10 +95,9 @@ def main(): af = open(audiofilename, 'r') spkr = openspkr() afskip = 0 - if len(sys.argv) > 3: - afskip = eval(sys.argv[3]) - if afskip > 0: - af.seek(afskip) + if args[2:]: + afskip = eval(args[2]) + af.seek(afskip) else: af, spkr = None, None foreground() |