NowPlaying.dll: Fixed that SHUFFLE, REPEAT, and VOLUME were not reset on player shutdown

This commit is contained in:
Birunthan Mohanathas
2012-04-18 19:10:43 +03:00
parent 27f33dbe10
commit 7415ed0889
8 changed files with 21 additions and 12 deletions

View File

@ -194,7 +194,7 @@ unsigned __stdcall CPlayer::LyricsThreadProc(void* pParam)
** Clear track information.
**
*/
void CPlayer::ClearData()
void CPlayer::ClearData(bool all)
{
m_State = STATE_STOPPED;
m_Artist.clear();
@ -208,4 +208,11 @@ void CPlayer::ClearData()
m_Rating = 0;
m_Number = 0;
m_Year = 0;
if (all)
{
m_Volume = 0;
m_Shuffle = false;
m_Repeat = false;
}
}