NowPlaying: Improved cover handling with some players

This commit is contained in:
Birunthan Mohanathas 2012-12-26 20:05:17 +02:00
parent fe1dc9434f
commit 47e130a6ff

View File

@ -341,6 +341,14 @@ LRESULT CALLBACK CPlayerCAD::WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM
player->FindLyrics();
}
}
else if (cds->dwData == IPC_NEW_COVER_NOTIFICATION)
{
WCHAR* data = (WCHAR*)cds->lpData;
if (data)
{
player->m_CoverPath.assign(data);
}
}
else if (cds->dwData == IPC_REGISTER_NOTIFICATION && !player->m_Initialized)
{
std::wstring data = (WCHAR*)cds->lpData;