Commit 29cc41ea authored by Julien Wadel's avatar Julien Wadel

Remove CoCreateInstance switch

parent f58b2ec5
......@@ -597,7 +597,9 @@ static void ms_wasapi_snd_card_detect_with_data_flow(MSSndCardManager *m, EDataF
#else
HRESULT result = CoInitialize(NULL);
#endif
result = CoCreateInstanceBT(CLSID_MMDeviceEnumerator, NULL, CLSCTX_ALL, IID_IMMDeviceEnumerator, (void**)&pEnumerator);
result = CoCreateInstance(CLSID_MMDeviceEnumerator, NULL, CLSCTX_ALL, IID_IMMDeviceEnumerator, (void**)&pEnumerator);
REPORT_ERROR("mswasapi: Could not create an instance of the device enumerator", result);
result = pEnumerator->GetDefaultAudioEndpoint(data_flow, eCommunications, &pEndpoint);
if (result == S_OK) {
......
......@@ -126,7 +126,7 @@ void MSWASAPIReader::init(LPCWSTR id)
#else
CoInitialize(NULL);
#endif
result = CoCreateInstanceBT(CLSID_MMDeviceEnumerator, NULL, CLSCTX_ALL, IID_IMMDeviceEnumerator, (void**)&pEnumerator);
result = CoCreateInstance(CLSID_MMDeviceEnumerator, NULL, CLSCTX_ALL, IID_IMMDeviceEnumerator, (void**)&pEnumerator);
REPORT_ERROR("mswasapi: Could not create an instance of the device enumerator", result);
mCaptureId = id;
result = pEnumerator->GetDevice(mCaptureId, &pDevice);
......
......@@ -126,7 +126,7 @@ void MSWASAPIWriter::init(LPCWSTR id, MSFilter *f) {
#else
CoInitialize(NULL);
#endif
result = CoCreateInstanceBT(CLSID_MMDeviceEnumerator, NULL, CLSCTX_ALL, IID_IMMDeviceEnumerator, (void**)&pEnumerator);
result = CoCreateInstance(CLSID_MMDeviceEnumerator, NULL, CLSCTX_ALL, IID_IMMDeviceEnumerator, (void**)&pEnumerator);
REPORT_ERROR("mswasapi: Could not create an instance of the device enumerator", result);
mRenderId = id;
result = pEnumerator->GetDevice(mRenderId, &pDevice);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment