Skip to content

Commit

Permalink
libobs: Fix crash when mix is NULL
Browse files Browse the repository at this point in the history
  • Loading branch information
exeldro authored and RytoEX committed Jul 11, 2024
1 parent 3a88427 commit 1cb1864
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libobs/obs.c
Original file line number Diff line number Diff line change
Expand Up @@ -878,13 +878,13 @@ static void obs_free_video(void)
obs_free_video_mix(video);
obs->video.mixes.array[i] = NULL;
}
da_free(obs->video.mixes);
if (num_views > 0)
blog(LOG_WARNING, "Number of remaining views: %ld", num_views);
pthread_mutex_unlock(&obs->video.mixes_mutex);

pthread_mutex_destroy(&obs->video.mixes_mutex);
pthread_mutex_init_value(&obs->video.mixes_mutex);
da_free(obs->video.mixes);

for (size_t i = 0; i < obs->video.ready_encoder_groups.num; i++) {
obs_weak_encoder_release(
Expand Down

0 comments on commit 1cb1864

Please sign in to comment.