NowPlaying.dll: Added support for types NUMBER and YEAR

This commit is contained in:
Birunthan Mohanathas
2012-03-12 12:01:12 +00:00
parent 63c42fe3a5
commit a57d75399c
9 changed files with 104 additions and 50 deletions

View File

@ -397,6 +397,12 @@ void CPlayerWMP::UpdateData()
m_Rating = rating;
}
spMedia->getItemInfo(CComBSTR(L"WM/TrackNumber"), &val);
m_Number = (UINT)_wtoi(val);
spMedia->getItemInfo(CComBSTR(L"WM/Year"), &val);
m_Year = (UINT)_wtoi(val);
double duration;
spMedia->get_duration(&duration);
m_Duration = (UINT)duration;