NowPlayingPlugin:

- Minor improvements to CAD interface
- Fixed: TITLE was empty when listening to radio stations with Winamp
- Fixed: Metadata may not be updated until full refresh after closing one of multiple NowPlaying based skins
This commit is contained in:
Birunthan Mohanathas
2011-07-01 20:34:12 +00:00
parent 339e798ba3
commit 8ae8a68547
13 changed files with 145 additions and 199 deletions

View File

@ -89,7 +89,7 @@ bool CPlayerWinamp::CheckWindow()
{
DWORD pID;
GetWindowThreadProcessId(m_Window, &pID);
m_WinampHandle = OpenProcess(PROCESS_VM_READ, false, pID);
m_WinampHandle = OpenProcess(PROCESS_VM_READ, FALSE, pID);
if (m_WinampHandle)
{
@ -200,7 +200,6 @@ void CPlayerWinamp::UpdateData()
std::wstring title = wBuffer;
std::wstring::size_type pos = title.find(L". ");
if (pos != std::wstring::npos && pos < 5)
{
pos += 2; // Skip ". "
@ -217,8 +216,9 @@ void CPlayerWinamp::UpdateData()
}
else
{
ClearData();
return;
m_Title = title;
m_Artist.clear();
m_Album.clear();
}
}