From 05003d1bc9fece4cf526dd4e8d5763ab8beb84f5 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Mon, 6 Oct 2003 05:00:19 +0000 Subject: [PATCH] fix SetPosition_hard EOF behavior --- stepmania/src/RageSoundReader_MP3.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/stepmania/src/RageSoundReader_MP3.cpp b/stepmania/src/RageSoundReader_MP3.cpp index 3f6d59ef6a..0e264ba714 100644 --- a/stepmania/src/RageSoundReader_MP3.cpp +++ b/stepmania/src/RageSoundReader_MP3.cpp @@ -974,8 +974,10 @@ int RageSoundReader_MP3::SetPosition_hard( int ms ) synthed = true; } - if( do_mad_frame_decode() == -1 ) - return -1; /* it set the error */ + int ret = do_mad_frame_decode(); + if( ret <= 0 ) + return ret; /* it set the error */ + synthed = false; } }