use consistent var types.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11284 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
de54fe58ff
commit
61ae9c0a88
|
@ -911,7 +911,7 @@ static switch_status_t shout_file_write(switch_file_handle_t *handle, void *data
|
||||||
shout_context_t *context;
|
shout_context_t *context;
|
||||||
int rlen = 0;
|
int rlen = 0;
|
||||||
int16_t *audio = data;
|
int16_t *audio = data;
|
||||||
int nsamples = *len;
|
size_t nsamples = *len;
|
||||||
|
|
||||||
if (!handle) {
|
if (!handle) {
|
||||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Error no handle\n");
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Error no handle\n");
|
||||||
|
@ -965,7 +965,7 @@ static switch_status_t shout_file_write(switch_file_handle_t *handle, void *data
|
||||||
}
|
}
|
||||||
|
|
||||||
if (handle->channels == 2) {
|
if (handle->channels == 2) {
|
||||||
int i, j = 0;
|
switch_size_t i, j = 0;
|
||||||
|
|
||||||
if (context->llen < nsamples) {
|
if (context->llen < nsamples) {
|
||||||
context->l = switch_core_alloc(context->memory_pool, nsamples * 2);
|
context->l = switch_core_alloc(context->memory_pool, nsamples * 2);
|
||||||
|
|
Loading…
Reference in New Issue