From 47e130a6ff2350bd756778f4f8750ef5b4961159 Mon Sep 17 00:00:00 2001 From: Birunthan Mohanathas Date: Wed, 26 Dec 2012 20:05:17 +0200 Subject: [PATCH] NowPlaying: Improved cover handling with some players --- Plugins/PluginNowPlaying/PlayerCAD.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Plugins/PluginNowPlaying/PlayerCAD.cpp b/Plugins/PluginNowPlaying/PlayerCAD.cpp index 06215258..a7b7d851 100644 --- a/Plugins/PluginNowPlaying/PlayerCAD.cpp +++ b/Plugins/PluginNowPlaying/PlayerCAD.cpp @@ -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;