This commit is contained in:
Glenn Maynard
2005-10-23 07:04:55 +00:00
parent eea214bad5
commit 8b34d6eef8
+5 -5
View File
@@ -842,20 +842,20 @@ bool RageSound::SetPositionFrames( int iFrames )
m_DataBuffer.clear(); m_DataBuffer.clear();
int ret; int iRet;
if( m_Param.m_bAccurateSync ) if( m_Param.m_bAccurateSync )
ret = m_pSource->SetPosition_Accurate(ms); iRet = m_pSource->SetPosition_Accurate(ms);
else else
ret = m_pSource->SetPosition_Fast(ms); iRet = m_pSource->SetPosition_Fast(ms);
if(ret == -1) if( iRet == -1 )
{ {
/* XXX untested */ /* XXX untested */
Fail( m_pSource->GetError() ); Fail( m_pSource->GetError() );
return false; /* failed */ return false; /* failed */
} }
if(ret == 0 && ms != 0) if( iRet == 0 && ms != 0 )
{ {
/* We were told to seek somewhere, and we got 0 instead, which means /* We were told to seek somewhere, and we got 0 instead, which means
* we passed EOF. This could be a truncated file or invalid data. */ * we passed EOF. This could be a truncated file or invalid data. */