frontend-tools: Reset stop event before starting captions

In case the stop event has already been set and hasn't had a chance to
unset for whatever reason.
This commit is contained in:
jp9000 2016-12-23 20:20:26 -08:00
parent d32f7c95a2
commit 950f677cc2

View File

@ -344,6 +344,8 @@ try {
void obs_captions::start()
{
if (!captions->th.joinable()) {
ResetEvent(captions->stop_event);
if (valid_lang(captions->lang_id))
captions->th = thread([] () {captions->main_thread();});
}