Possibly fix a crash in microphone testing.
This commit is contained in:
		
							parent
							
								
									6ff8c1de05
								
							
						
					
					
						commit
						be53cb027c
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -348,8 +348,8 @@ void Calls::startTestingMicrophone() {
 | 
				
			||||||
	_micTester = std::make_unique<tgvoip::AudioInputTester>(
 | 
						_micTester = std::make_unique<tgvoip::AudioInputTester>(
 | 
				
			||||||
		Global::CallInputDeviceID().toStdString());
 | 
							Global::CallInputDeviceID().toStdString());
 | 
				
			||||||
	if (_micTester->Failed()) {
 | 
						if (_micTester->Failed()) {
 | 
				
			||||||
		Ui::show(Box<InformBox>(lang(lng_call_error_audio_io)));
 | 
					 | 
				
			||||||
		stopTestingMicrophone();
 | 
							stopTestingMicrophone();
 | 
				
			||||||
 | 
							Ui::show(Box<InformBox>(lang(lng_call_error_audio_io)));
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue