浏览代码

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.
jp9000 8 年之前
父节点
当前提交
950f677cc2
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      UI/frontend-plugins/frontend-tools/captions.cpp

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

@@ -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();});
 	}