mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2026-01-08 05:55:13 +00:00
Fixed crash on Windows if there's no mic/speaker in the system
This commit is contained in:
@@ -1221,6 +1221,12 @@ void VoIPController::RunTickThread(){
|
||||
conctl->Tick();
|
||||
|
||||
if(state==STATE_ESTABLISHED){
|
||||
if((audioInput && !audioInput->IsInitialized()) || (audioOutput && !audioOutput->IsInitialized())){
|
||||
LOGE("Audio I/O failed");
|
||||
lastError=TGVOIP_ERROR_AUDIO_IO;
|
||||
SetState(STATE_FAILED);
|
||||
}
|
||||
|
||||
int act=conctl->GetBandwidthControlAction();
|
||||
if(act==TGVOIP_CONCTL_ACT_DECREASE){
|
||||
uint32_t bitrate=encoder->GetBitrate();
|
||||
|
||||
Reference in New Issue
Block a user