From: Dragos Oancea Date: Mon, 5 Oct 2015 14:51:50 +0000 (-0400) Subject: FS-8302: fix some printing/logging because switch_opus_show_audio_bandwidth() was... X-Git-Tag: v1.6.3~1^2~34^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a0006dcdc92817eab54a55bf6fd3623c369c073;p=thirdparty%2Ffreeswitch.git FS-8302: fix some printing/logging because switch_opus_show_audio_bandwidth() was not returning TRUE/FALSE as expected --- diff --git a/src/mod/codecs/mod_opus/mod_opus.c b/src/mod/codecs/mod_opus/mod_opus.c index 2905041966..14e873c73d 100644 --- a/src/mod/codecs/mod_opus/mod_opus.c +++ b/src/mod/codecs/mod_opus/mod_opus.c @@ -159,21 +159,21 @@ static switch_bool_t switch_opus_show_audio_bandwidth(int audiobandwidth,char *a { if (audiobandwidth == OPUS_BANDWIDTH_NARROWBAND) { strncpy(audiobandwidth_str, "NARROWBAND",10); - return SWITCH_STATUS_SUCCESS; + return SWITCH_TRUE; } else if (audiobandwidth == OPUS_BANDWIDTH_MEDIUMBAND) { strncpy(audiobandwidth_str, "MEDIUMBAND",10); - return SWITCH_STATUS_SUCCESS; + return SWITCH_TRUE; } else if (audiobandwidth == OPUS_BANDWIDTH_WIDEBAND) { strncpy(audiobandwidth_str,"WIDEBAND",8); - return SWITCH_STATUS_SUCCESS; + return SWITCH_TRUE; } else if (audiobandwidth == OPUS_BANDWIDTH_SUPERWIDEBAND) { strncpy(audiobandwidth_str, "SUPERWIDEBAND",13); - return SWITCH_STATUS_SUCCESS; + return SWITCH_TRUE; } else if (audiobandwidth == OPUS_BANDWIDTH_FULLBAND) { 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)