Modify SoundPlayer.cpp for the last TMediaPlayer.so

This commit is contained in:
yangws 2011-05-19 14:57:16 +08:00
parent e6c7d9fe63
commit 6856ffc22c
1 changed files with 2 additions and 2 deletions

View File

@ -121,7 +121,7 @@ void SoundPlayer::Release()
void SoundPlayer::Pause()
{
if (m_pPlayer && PLAYER_STATUS_PAUSED != m_pPlayer->GetCurrentStatus())
if (m_pPlayer && PLAYER_STATUS_PLAYING == m_pPlayer->GetCurrentStatus())
{
m_pPlayer->Pause();
}
@ -129,7 +129,7 @@ void SoundPlayer::Pause()
void SoundPlayer::Resume()
{
if (m_pPlayer && PLAYER_STATUS_PLAYING != m_pPlayer->GetCurrentStatus())
if (m_pPlayer)
{
m_pPlayer->Resume();
}