Skip to content

Commit

Permalink
fix for graphics thread
Browse files Browse the repository at this point in the history
  • Loading branch information
summeroff committed Oct 17, 2023
1 parent f7d90a5 commit 16c4a63
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions libobs/obs.c
Original file line number Diff line number Diff line change
Expand Up @@ -652,6 +652,12 @@ static int obs_init_video()
}
}

if(&video->video_thread)
{
blog(LOG_INFO, "[VIDEO_CANVAS] wait obs_graphics_thread to stop");
pthread_join(video->video_thread, NULL);
}

uint32_t max_fps_den = 0;
uint32_t max_fps_num = 1;
for (size_t i = 0, num = obs->video.canvases.num; i < num; i++) {
Expand Down

0 comments on commit 16c4a63

Please sign in to comment.