Holding the lock in destroy_display_stream can result in a deadlock in display_stream_update since cb4595e512ca68526c7b44b73ef6d2708c8ab96a
@@ -63,7 +63,6 @@ static void display_capture_destroy(void *data)
if (!dc)
return;
- pthread_mutex_lock(&dc->mutex);
gs_entercontext(obs_graphics());
destroy_display_stream(dc);