1
0
mirror of https://github.com/signalwire/freeswitch.git synced 2025-04-01 11:02:53 +00:00

FS-8302: fix some printing/logging because switch_opus_show_audio_bandwidth() was not returning TRUE/FALSE as expected

This commit is contained in:
Dragos Oancea 2015-10-05 10:51:50 -04:00
parent b5e486fd5c
commit 8a0006dcdc

@ -159,21 +159,21 @@ static switch_bool_t switch_opus_show_audio_bandwidth(int audiobandwidth,char *a
{ {
if (audiobandwidth == OPUS_BANDWIDTH_NARROWBAND) { if (audiobandwidth == OPUS_BANDWIDTH_NARROWBAND) {
strncpy(audiobandwidth_str, "NARROWBAND",10); strncpy(audiobandwidth_str, "NARROWBAND",10);
return SWITCH_STATUS_SUCCESS; return SWITCH_TRUE;
} else if (audiobandwidth == OPUS_BANDWIDTH_MEDIUMBAND) { } else if (audiobandwidth == OPUS_BANDWIDTH_MEDIUMBAND) {
strncpy(audiobandwidth_str, "MEDIUMBAND",10); strncpy(audiobandwidth_str, "MEDIUMBAND",10);
return SWITCH_STATUS_SUCCESS; return SWITCH_TRUE;
} else if (audiobandwidth == OPUS_BANDWIDTH_WIDEBAND) { } else if (audiobandwidth == OPUS_BANDWIDTH_WIDEBAND) {
strncpy(audiobandwidth_str,"WIDEBAND",8); strncpy(audiobandwidth_str,"WIDEBAND",8);
return SWITCH_STATUS_SUCCESS; return SWITCH_TRUE;
} else if (audiobandwidth == OPUS_BANDWIDTH_SUPERWIDEBAND) { } else if (audiobandwidth == OPUS_BANDWIDTH_SUPERWIDEBAND) {
strncpy(audiobandwidth_str, "SUPERWIDEBAND",13); strncpy(audiobandwidth_str, "SUPERWIDEBAND",13);
return SWITCH_STATUS_SUCCESS; return SWITCH_TRUE;
} else if (audiobandwidth == OPUS_BANDWIDTH_FULLBAND) { } else if (audiobandwidth == OPUS_BANDWIDTH_FULLBAND) {
strncpy(audiobandwidth_str, "FULLBAND",8); strncpy(audiobandwidth_str, "FULLBAND",8);
return SWITCH_STATUS_SUCCESS; return SWITCH_TRUE;
} }
return SWITCH_STATUS_FALSE; return SWITCH_FALSE;
} }
static switch_status_t switch_opus_fmtp_parse(const char *fmtp, switch_codec_fmtp_t *codec_fmtp) static switch_status_t switch_opus_fmtp_parse(const char *fmtp, switch_codec_fmtp_t *codec_fmtp)