Fix destructor video outputs.
This fixes a crash on Linux that supposedly occurs when pthread_join is called multiple times.
This commit is contained in:
parent
9dc2cd7d7e
commit
e8bf01acfc
@ -367,6 +367,7 @@ void video_output_stop(video_t video)
|
||||
return;
|
||||
|
||||
if (video->initialized) {
|
||||
video->initialized = false;
|
||||
os_event_signal(video->stop_event);
|
||||
pthread_join(video->thread, &thread_ret);
|
||||
os_event_signal(video->update_event);
|
||||
|
Loading…
x
Reference in New Issue
Block a user