fix SetPosition_toc EOF behavior

This commit is contained in:
Glenn Maynard
2003-10-06 05:02:03 +00:00
parent 05003d1bc9
commit a2da0828b1
+3 -2
View File
@@ -905,8 +905,9 @@ int RageSoundReader_MP3::SetPosition_toc( int ms, bool Xing )
do do
{ {
if( do_mad_frame_decode() <= 0 ) /* XXX eof */ int ret = do_mad_frame_decode();
return -1; /* it set the error */ if( ret <= 0 )
return ret; /* it set the error */
} while( get_this_frame_byte(mad) < bytepos ); } while( get_this_frame_byte(mad) < bytepos );
synth_output(); synth_output();