mirror of
https://github.com/overte-org/overte.git
synced 2025-08-11 00:53:17 +02:00
Fixed possible crashes/freezes on input audio switch
This commit is contained in:
parent
f963233a7b
commit
4290eb21ea
1 changed files with 1 additions and 1 deletions
|
@ -1403,7 +1403,7 @@ bool AudioClient::switchInputToAudioDevice(const QAudioDeviceInfo& inputDeviceIn
|
||||||
_audioInput->stop();
|
_audioInput->stop();
|
||||||
_inputDevice = NULL;
|
_inputDevice = NULL;
|
||||||
|
|
||||||
delete _audioInput;
|
_audioInput->deleteLater();
|
||||||
_audioInput = NULL;
|
_audioInput = NULL;
|
||||||
_numInputCallbackBytes = 0;
|
_numInputCallbackBytes = 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue