cleanup
This commit is contained in:
@@ -842,20 +842,20 @@ bool RageSound::SetPositionFrames( int iFrames )
|
||||
|
||||
m_DataBuffer.clear();
|
||||
|
||||
int ret;
|
||||
int iRet;
|
||||
if( m_Param.m_bAccurateSync )
|
||||
ret = m_pSource->SetPosition_Accurate(ms);
|
||||
iRet = m_pSource->SetPosition_Accurate(ms);
|
||||
else
|
||||
ret = m_pSource->SetPosition_Fast(ms);
|
||||
iRet = m_pSource->SetPosition_Fast(ms);
|
||||
|
||||
if(ret == -1)
|
||||
if( iRet == -1 )
|
||||
{
|
||||
/* XXX untested */
|
||||
Fail( m_pSource->GetError() );
|
||||
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 passed EOF. This could be a truncated file or invalid data. */
|
||||
|
||||
Reference in New Issue
Block a user