engine: client: voice: don't print about unsupported codec with empty string name
This commit is contained in:
parent
fe2a4d0428
commit
bbb076c0d4
1 changed files with 2 additions and 1 deletions
|
@ -627,7 +627,8 @@ qboolean Voice_Init( const char *pszCodecName, int quality, qboolean preinit )
|
||||||
{
|
{
|
||||||
if( Q_strcmp( pszCodecName, VOICE_OPUS_CUSTOM_CODEC ))
|
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
|
// reset saved codec name, we won't enable voice for this connection
|
||||||
voice_codec_init[0] = 0;
|
voice_codec_init[0] = 0;
|
||||||
|
|
Loading…
Add table
Reference in a new issue