mirror of
https://github.com/projectM-visualizer/projectm.git
synced 2026-03-04 06:25:08 +00:00
WMP fixes
git-svn-id: https://projectm.svn.sourceforge.net/svnroot/projectm/trunk@509 6778bc44-b910-0410-a7a0-be141de4315d
This commit is contained in:
@ -340,10 +340,13 @@ STDMETHODIMP CProjectMwmp::Create(HWND hwndParent)
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
STDMETHODIMP CProjectMwmp::Destroy()
|
||||
{
|
||||
m_hwndParent = NULL;
|
||||
starting = true;
|
||||
delete(globalPM);
|
||||
return S_OK;
|
||||
if (!starting)
|
||||
{
|
||||
m_hwndParent = NULL;
|
||||
starting = true;
|
||||
delete(globalPM);
|
||||
return S_OK;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -379,7 +382,7 @@ char* ConvertBSTRToLPSTR (BSTR bstrIn)
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
STDMETHODIMP CProjectMwmp::NotifyNewMedia(IWMPMedia *pMedia)
|
||||
{
|
||||
if (starting == false)
|
||||
if (starting == false && pMedia != NULL)
|
||||
{
|
||||
CComBSTR name;
|
||||
pMedia->get_name(&name);
|
||||
|
||||
Reference in New Issue
Block a user