[iortcw] 130/152: All: Avoid shuting down opus voip codec multiple times

Simon McVittie smcv at debian.org
Fri Sep 8 10:40:24 UTC 2017


This is an automated email from the git hooks/post-receive script.

smcv pushed a commit to annotated tag 1.5a
in repository iortcw.

commit bc8a8a24c133a64e87209d181a56e5884f2e5d3c
Author: MAN-AT-ARMS <M4N4T4RMS at gmail.com>
Date:   Fri Oct 14 19:45:22 2016 -0400

    All: Avoid shuting down opus voip codec multiple times
---
 MP/code/client/cl_main.c | 1 +
 SP/code/client/cl_main.c | 1 +
 2 files changed, 2 insertions(+)

diff --git a/MP/code/client/cl_main.c b/MP/code/client/cl_main.c
index 3b3320f..bbdd4f4 100644
--- a/MP/code/client/cl_main.c
+++ b/MP/code/client/cl_main.c
@@ -1518,6 +1518,7 @@ void CL_Disconnect( qboolean showMainMenu ) {
 		for (i = 0; i < MAX_CLIENTS; i++) {
 			opus_decoder_destroy(clc.opusDecoder[i]);
 		}
+		clc.voipCodecInitialized = qfalse;
 	}
 	Cmd_RemoveCommand ("voip");
 #endif
diff --git a/SP/code/client/cl_main.c b/SP/code/client/cl_main.c
index 6e56793..d5f4a44 100644
--- a/SP/code/client/cl_main.c
+++ b/SP/code/client/cl_main.c
@@ -1441,6 +1441,7 @@ void CL_Disconnect( qboolean showMainMenu ) {
 		for (i = 0; i < MAX_CLIENTS; i++) {
 			opus_decoder_destroy(clc.opusDecoder[i]);
 		}
+		clc.voipCodecInitialized = qfalse;
 	}
 	Cmd_RemoveCommand ("voip");
 #endif

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/iortcw.git



More information about the Pkg-games-commits mailing list