Browse Source

Fix destructor video outputs.

This fixes a crash on Linux that supposedly occurs when pthread_join
is called multiple times.
fryshorts 11 years ago
parent
commit
e8bf01acfc
1 changed files with 1 additions and 0 deletions
  1. 1 0
      libobs/media-io/video-io.c

+ 1 - 0
libobs/media-io/video-io.c

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