mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-15 22:08:33 +00:00
if space
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15893 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
376861fd8c
commit
21e3bb970a
24 files changed
+167
-167
No files matched your search
@@ -177,7 +177,7 @@ static switch_status_t tts_commandline_speech_read_tts(switch_speech_handle_t *s
|
||||
return SWITCH_STATUS_FALSE;
|
||||
}
|
||||
*datalen = my_datalen * 2;
|
||||
if(datalen == 0) {
|
||||
if (datalen == 0) {
|
||||
return SWITCH_STATUS_BREAK;
|
||||
} else {
|
||||
return SWITCH_STATUS_SUCCESS;
|
||||
|
||||
@@ -607,7 +607,7 @@ static switch_status_t audio_queue_create(audio_queue_t **audio_queue, const cha
|
||||
|
||||
done:
|
||||
|
||||
if(status != SWITCH_STATUS_SUCCESS) {
|
||||
if (status != SWITCH_STATUS_SUCCESS) {
|
||||
audio_queue_destroy(laudio_queue);
|
||||
}
|
||||
return status;
|
||||
@@ -628,7 +628,7 @@ static switch_status_t audio_queue_write(audio_queue_t *queue, void *data, switc
|
||||
|
||||
#ifdef MOD_UNIMRCP_DEBUG_AUDIO_QUEUE
|
||||
switch_size_t len = *data_len;
|
||||
if(queue->file_write) {
|
||||
if (queue->file_write) {
|
||||
switch_file_write(queue->file_write, data, &len);
|
||||
}
|
||||
#endif
|
||||
@@ -3275,7 +3275,7 @@ static switch_status_t mod_unimrcp_do_config()
|
||||
*/
|
||||
static char *ip_addr_get(const char *value, apr_pool_t *pool)
|
||||
{
|
||||
if(!value || strcasecmp(value,"auto") == 0) {
|
||||
if (!value || strcasecmp(value,"auto") == 0) {
|
||||
char *addr = DEFAULT_LOCAL_IP_ADDRESS;
|
||||
apt_ip_get(&addr,pool);
|
||||
return addr;
|
||||
@@ -3337,19 +3337,19 @@ static int process_rtp_config(mrcp_client_t *client, mpf_rtp_config_t *rtp_confi
|
||||
rtp_config->jb_config.max_playout_delay = atol(val);
|
||||
} else if (strcasecmp(param, "codecs") == 0) {
|
||||
const mpf_codec_manager_t *codec_manager = mrcp_client_codec_manager_get(client);
|
||||
if(codec_manager) {
|
||||
if (codec_manager) {
|
||||
mpf_codec_manager_codec_list_load(codec_manager, &rtp_config->codec_list, val, pool);
|
||||
}
|
||||
} else if (strcasecmp(param, "ptime") == 0) {
|
||||
rtp_config->ptime = (apr_uint16_t)atol(val);
|
||||
#if UNI_VERSION_AT_LEAST(0,8,0)
|
||||
} else if(strcasecmp(param, "rtcp") == 0) {
|
||||
} else if (strcasecmp(param, "rtcp") == 0) {
|
||||
rtp_config->rtcp = atoi(val);
|
||||
} else if(strcasecmp(param, "rtcp-bye") == 0) {
|
||||
} else if (strcasecmp(param, "rtcp-bye") == 0) {
|
||||
rtp_config->rtcp_bye_policy = atoi(val);
|
||||
} else if(strcasecmp(param, "rtcp-tx-interval") == 0) {
|
||||
} else if (strcasecmp(param, "rtcp-tx-interval") == 0) {
|
||||
rtp_config->rtcp_tx_interval = (apr_uint16_t)atoi(val);
|
||||
} else if(strcasecmp(param, "rtcp-rx-resolution") == 0) {
|
||||
} else if (strcasecmp(param, "rtcp-rx-resolution") == 0) {
|
||||
rtp_config->rtcp_rx_resolution = (apr_uint16_t)atol(val);
|
||||
#endif
|
||||
} else {
|
||||
@@ -3470,7 +3470,7 @@ static mrcp_client_t *mod_unimrcp_client_create(switch_memory_pool_t *mod_pool)
|
||||
#if UNI_VERSION_AT_LEAST(0,8,0)
|
||||
/* load the synthesizer and recognizer resources */
|
||||
resource_loader = mrcp_resource_loader_create(FALSE, pool);
|
||||
if(resource_loader) {
|
||||
if (resource_loader) {
|
||||
apt_str_t synth_resource;
|
||||
apt_str_t recog_resource;
|
||||
apt_string_set(&synth_resource, "speechsynth");
|
||||
|
||||
Reference in new issue
Block a user