From 4411d21135238a45e004dd81812cd83d68ade9f0 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Wed, 12 Jan 2022 07:42:01 +1100 Subject: [PATCH] [client] spice: update submodule to prevent segfault on shutdown --- client/src/main.c | 17 +++++++++++------ repos/PureSpice | 2 +- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/client/src/main.c b/client/src/main.c index 1454c3b8..a3afb777 100644 --- a/client/src/main.c +++ b/client/src/main.c @@ -851,12 +851,6 @@ int spiceThread(void * arg) .port = g_params.spicePort, .password = "", .ready = spiceReady, - .log = - { - .info = debug_info, - .warn = debug_warn, - .error = debug_error, - }, .clipboard = { .enable = g_params.useSpiceClipboard, @@ -1065,6 +1059,17 @@ static int lg_run(void) return -1; } + const PSInit psInit = + { + .log = + { + .info = debug_info, + .warn = debug_warn, + .error = debug_error, + } + }; + purespice_init(&psInit); + if (g_params.useSpiceInput || g_params.useSpiceClipboard || g_params.useSpiceAudio) diff --git a/repos/PureSpice b/repos/PureSpice index 2ba840c2..0cb33f30 160000 --- a/repos/PureSpice +++ b/repos/PureSpice @@ -1 +1 @@ -Subproject commit 2ba840c2e9ddee211b752a84ae8f4b4db83c9738 +Subproject commit 0cb33f30cafb3f1ca2478b18530992b6ce27b75b