fix SetPosition_hard EOF behavior

This commit is contained in:
Glenn Maynard
2003-10-06 05:00:19 +00:00
parent 71ae8a0848
commit 05003d1bc9
+4 -2
View File
@@ -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;
}
}