# HG changeset patch # User Ryan C. Gordon # Date 1042405165 0 # Node ID 45614e2c1c8134c5209b2e4f9b1f3314c527656a # Parent 63a75d5880432c7dec07225de9a8c6aa8b9f0b62 Patch to fix rewinding code by Eric Wing. diff -r 63a75d588043 -r 45614e2c1c81 decoders/smpeg.c --- 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 */