NowPlaying.dll:

- Fixed that album name and cover were not always displayed with Winamp due to r1018
- Shuffle and repeat state is now rechecked on track change with iTunes
- Improved performance when reading file tags/cover
- Updated iTunes SDK files
This commit is contained in:
Birunthan Mohanathas
2011-11-10 12:09:50 +00:00
parent 8cb0a041e0
commit f84491ec83
9 changed files with 121 additions and 42 deletions

View File

@ -178,7 +178,7 @@ void CPlayerWinamp::UpdateData()
m_Shuffle = (bool)SendMessage(m_Window, WM_WA_IPC, 0, IPC_GET_SHUFFLE);
m_Repeat = (bool)SendMessage(m_Window, WM_WA_IPC, 0, IPC_GET_REPEAT);
TagLib::FileRef fr(wBuffer);
TagLib::FileRef fr(wBuffer, false);
TagLib::Tag* tag = fr.tag();
if (tag)
{
@ -207,7 +207,7 @@ void CPlayerWinamp::UpdateData()
}
std::wstring trackFolder = CCover::GetFileFolder(m_FilePath);
if (!m_Album.empty())
if (tag && !m_Album.empty())
{
// Winamp stores covers usually as %album%.jpg
std::wstring file = m_Album;
@ -257,7 +257,8 @@ void CPlayerWinamp::UpdateData()
m_CoverPath.clear();
}
}
else if (tag)
if (tag)
{
return;
}