fix SetPosition_toc EOF behavior
This commit is contained in:
@@ -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();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user