win-wasapi: Call CoInitializeEx in reconnect thread
Fixes an issue where COM might not be available to calls within the reconnect thread.
This commit is contained in:
@@ -366,6 +366,8 @@ DWORD WINAPI WASAPISource::ReconnectThread(LPVOID param)
|
||||
|
||||
os_set_thread_name("win-wasapi: reconnect thread");
|
||||
|
||||
CoInitializeEx(0, COINIT_MULTITHREADED);
|
||||
|
||||
while (!WaitForSignal(source->stopSignal, RECONNECT_INTERVAL)) {
|
||||
if (source->TryInitialize())
|
||||
break;
|
||||
|
Reference in New Issue
Block a user