output/wasapi: catch all exception
This commit is contained in:
		| @@ -401,9 +401,9 @@ WasapiOutput::DoDisable() noexcept | |||||||
| 		try { | 		try { | ||||||
| 			thread->Finish(); | 			thread->Finish(); | ||||||
| 			thread->Join(); | 			thread->Join(); | ||||||
| 		} catch (std::exception &err) { | 		} catch (...) { | ||||||
| 			FormatError(wasapi_output_domain, "exception while disabling: %s", | 			LogError(std::current_exception(), | ||||||
| 				    err.what()); | 				 "exception while disabling"); | ||||||
| 		} | 		} | ||||||
| 		thread.reset(); | 		thread.reset(); | ||||||
| 		client.reset(); | 		client.reset(); | ||||||
| @@ -560,9 +560,9 @@ WasapiOutput::Close() noexcept | |||||||
| 			Stop(*client); | 			Stop(*client); | ||||||
| 		}).get(); | 		}).get(); | ||||||
| 		thread->CheckException(); | 		thread->CheckException(); | ||||||
| 	} catch (std::exception &err) { | 	} catch (...) { | ||||||
| 		FormatError(wasapi_output_domain, "exception while stoping: %s", | 		FormatError(std::current_exception(), | ||||||
| 			    err.what()); | 			    "exception while stopping"); | ||||||
| 	} | 	} | ||||||
| 	is_started = false; | 	is_started = false; | ||||||
| 	thread->Finish(); | 	thread->Finish(); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Max Kellermann
					Max Kellermann