Mercurial > SDL_sound_CoreAudio
diff decoders/smpeg.c @ 436:45614e2c1c81
Patch to fix rewinding code by Eric Wing.
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Sun, 12 Jan 2003 20:59:25 +0000 |
parents | c42ac9ee2ce4 |
children | c66080364dff 0f5888f9aef7 |
line wrap: on
line diff
--- a/decoders/smpeg.c Sat Dec 21 11:35:09 2002 +0000 +++ b/decoders/smpeg.c Sun Jan 12 20:59:25 2003 +0000 @@ -266,8 +266,19 @@ */ status = SMPEG_status(smpeg); SMPEG_rewind(smpeg); + /* EW: I think SMPEG_play() has an independent and unrelated meaning + * to the flag, "SMPEG_PLAYING". This is why the SMPEG_play() call + * is done in the open() function even though the file is not yet + * technically playing. I believe SMPEG_play() must always be active + * because this seems to be what's causing the: + * "Can't rewind after the file has finished playing once" problem, + * because always recalling it here seems to make the problem go away. + */ + /* if (status == SMPEG_PLAYING) SMPEG_play(smpeg); + */ + SMPEG_play(smpeg); return(1); } /* _SMPEG_rewind */