0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-20 13:08:50 +02:00

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:
fryshorts 2014-04-26 01:39:43 +02:00
parent 9dc2cd7d7e
commit e8bf01acfc

View File

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