[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] movie.play was improperly documented
The optional argument to movie.play, which has since been removed, was
described as follows: "The optional loops argument controls how many
times the movie will be repeated. A loop value of -1 means the movie
will repeat forever." This argument was passed to the smpeg function
SMPEG_loop. However, SMPEG_loop does not specify how many times to
repeat a movie. Rather it takes a boolean argument which turns looping
on or off. So, of course, passing any non-zero value to movie.play would
start an infinite loop.
This never quite worked properly on Windows anyway. pygame.event.wait
paused playback between repeats until an event was received. And passing
a file-like object to pygame.movie.Movie froze the playback after the
first pass. So removing the argument to play is not a complete loss. It
does break pyzzle, but then I gather this project is on indefinite hold.
--
Lenard Lindstrom
<len-l@xxxxxxxxx>