From bbb076c0d4d26c47ef074b4106c88b091e9864c8 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Thu, 10 Oct 2024 23:37:47 +0300 Subject: [PATCH] engine: client: voice: don't print about unsupported codec with empty string name --- engine/client/voice.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/engine/client/voice.c b/engine/client/voice.c index 4801b1e1..9164bca0 100644 --- a/engine/client/voice.c +++ b/engine/client/voice.c @@ -627,7 +627,8 @@ qboolean Voice_Init( const char *pszCodecName, int quality, qboolean preinit ) { if( Q_strcmp( pszCodecName, VOICE_OPUS_CUSTOM_CODEC )) { - Con_Printf( S_ERROR "Server requested unsupported codec: %s\n", pszCodecName ); + if( COM_CheckStringEmpty( pszCodecName )) + Con_Printf( S_ERROR "Server requested unsupported codec: %s\n", pszCodecName ); // reset saved codec name, we won't enable voice for this connection voice_codec_init[0] = 0;