qt, video: Fix hard reset crashes

This commit is contained in:
Cacodemon345
2022-07-05 00:21:30 +06:00
parent fb5ed3fffd
commit 46a40a616a
3 changed files with 43 additions and 13 deletions

View File

@@ -26,6 +26,7 @@ thread_create(void (*thread_rout)(void *param), void *param)
int
thread_wait(thread_t *arg)
{
if (!arg) return 0;
auto thread = reinterpret_cast<std::thread*>(arg);
thread->join();
return 0;