1
0
Эх сурвалжийг харах

frontend-tools: Detach caption thread if critical failure

Prevents the thread from being considered "active" if a critical failure
occur, so calling the stop function won't be necessary.
jp9000 8 жил өмнө
parent
commit
d32f7c95a2

+ 1 - 0
UI/frontend-plugins/frontend-tools/captions.cpp

@@ -338,6 +338,7 @@ try {
 } catch (HRError err) {
 	error("%s failed: %s (%lX)", __FUNCTION__, err.str, err.hr);
 	CoUninitialize();
+	captions->th.detach();
 }
 
 void obs_captions::start()