From 2a8f03cb42db7735d62c9ad88382c06350a7d76c Mon Sep 17 00:00:00 2001 From: Fela Ameghino Date: Sun, 6 Dec 2020 15:39:49 +0100 Subject: [PATCH] Reinitialize mixer after StopTransport --- .../m84/src/modules/audio_device/win/audio_device_core_win.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/patches_for_WebRTC_org/m84/src/modules/audio_device/win/audio_device_core_win.cc b/patches_for_WebRTC_org/m84/src/modules/audio_device/win/audio_device_core_win.cc index 375890e..7976a77 100644 --- a/patches_for_WebRTC_org/m84/src/modules/audio_device/win/audio_device_core_win.cc +++ b/patches_for_WebRTC_org/m84/src/modules/audio_device/win/audio_device_core_win.cc @@ -635,6 +635,8 @@ struct AudioDeviceHelper : public DeviceHelper { CloseHandle(_hThread); _hThread = nullptr; _transporting = false; + _transportInitialized = false; + _mixerInitialized = false; return -1; } @@ -647,6 +649,8 @@ struct AudioDeviceHelper : public DeviceHelper { ResetEvent(_hShutdownEvent); _transporting = false; + _transportInitialized = false; + _mixerInitialized = false; CloseHandle(_hThread); _hThread = nullptr;