From 7b37dc6cbbfc67400a8473ef9fc20ed0b9f5d850 Mon Sep 17 00:00:00 2001 From: jp9000 Date: Thu, 30 Jan 2014 12:39:26 -0700 Subject: [PATCH] Oh and while we're at it I suppose another fix --- libobs/obs-scene.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libobs/obs-scene.c b/libobs/obs-scene.c index f40d9c53d..cb45af0a2 100644 --- a/libobs/obs-scene.c +++ b/libobs/obs-scene.c @@ -115,11 +115,11 @@ static inline void attach_sceneitem(struct obs_scene_item *item, static void scene_video_render(void *data) { + pthread_mutex_lock(&scene->mutex); + struct obs_scene *scene = data; struct obs_scene_item *item = scene->first_item; - pthread_mutex_lock(&scene->mutex); - while (item) { if (obs_source_removed(item->source)) { struct obs_scene_item *del_item = item;