[Summary] Fixed bug with per thread pool error on Windows, when opening device control panel

This commit is contained in:
Greg Zharun 2015-02-03 12:32:56 +02:00
parent 5d5655d682
commit 314236e1c6
2 changed files with 7 additions and 3 deletions

View file

@ -360,8 +360,10 @@ WTErr WCMRAudioDevice::ResetDevice ()
if (err == eNoErr && wasActive)
SetActive(true);
if (err == eNoErr && wasStreaming)
if (err == eNoErr && wasStreaming) {
m_pMyManager->NotifyClient (WCMRAudioDeviceManagerClient::DeviceStartsStreaming);
SetStreaming(true);
}
return err;
}

View file

@ -1334,9 +1334,11 @@ WTErr WCMRPortAudioDevice::ShowConfigPanel (void *pParam)
ResetDevice();
// restore previous state for the device
SetActive(true);
if (wasStreaming)
if (wasStreaming) {
m_pMyManager->NotifyClient (WCMRAudioDeviceManagerClient::DeviceStartsStreaming);
SetStreaming(true);
}
}
#else
pParam = pParam;
#endif //_windows