cleanup; fix early out

This commit is contained in:
Glenn Maynard
2006-12-23 01:13:45 +00:00
parent 6531fb0013
commit c415651f58
+6 -8
View File
@@ -592,6 +592,10 @@ bool RageSound::SetPositionFrames( int iFrames )
return false;
}
/* If we're already there, don't do anything. */
if( m_iSourceFrame == iFrames )
return true;
int iRet = m_pSource->SetPosition( iFrames );
if( iRet == -1 )
{
@@ -599,14 +603,8 @@ bool RageSound::SetPositionFrames( int iFrames )
return false; /* failed */
}
{
/* If we're already there, don't do anything. */
if( m_iSourceFrame == iFrames )
return true;
m_iSourceFrame = iFrames;
m_iStoppedSourceFrame = iFrames;
}
m_iSourceFrame = iFrames;
m_iStoppedSourceFrame = iFrames;
if( iRet == 0 )
{