mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-09-20 13:08:50 +02:00
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.
This commit is contained in:
parent
869692098a
commit
d32f7c95a2
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user