cleanup; fix early out
This commit is contained in:
@@ -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 )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user