Sfoglia il codice sorgente

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 anni fa
parent
commit
950f677cc2
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  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();});
 	}