diff --git a/stepmania/src/RageSoundReader_MP3.cpp b/stepmania/src/RageSoundReader_MP3.cpp index 1f76f92684..3f6d59ef6a 100644 --- a/stepmania/src/RageSoundReader_MP3.cpp +++ b/stepmania/src/RageSoundReader_MP3.cpp @@ -1004,8 +1004,12 @@ int RageSoundReader_MP3::SetPosition_estimate( int ms ) /* We've jumped across the file, so the decoder is currently desynced. * Don't use resync(); it's slow. Just decode a few frames. */ - if( do_mad_frame_decode() == -1 ) return -1; - if( do_mad_frame_decode() == -1 ) return -1; + for( int i = 0; i < 2; ++i ) + { + int ret = do_mad_frame_decode(); + if( ret <= 0 ) + return ret; + } /* Throw out one synth. */ synth_output();