mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-18 01:28:42 +00:00
fix windows build
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1833 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
34882f7a60
commit
03ac8289e8
@ -557,7 +557,7 @@ static void *SWITCH_THREAD_FUNC conference_thread_run(switch_thread_t *thread, v
|
|||||||
for (x = 0; x < imember->read / 2; x++) {
|
for (x = 0; x < imember->read / 2; x++) {
|
||||||
int32_t z = muxed[x] + bptr[x];
|
int32_t z = muxed[x] + bptr[x];
|
||||||
normalize_to_16bit(z);
|
normalize_to_16bit(z);
|
||||||
muxed[x] = z;
|
muxed[x] = (int16_t)z;
|
||||||
}
|
}
|
||||||
|
|
||||||
ready++;
|
ready++;
|
||||||
|
@ -2870,9 +2870,9 @@ SWITCH_DECLARE(uint32_t) switch_core_session_limit(uint32_t new)
|
|||||||
|
|
||||||
SWITCH_DECLARE(switch_status_t) switch_core_init(char *console, const char **err)
|
SWITCH_DECLARE(switch_status_t) switch_core_init(char *console, const char **err)
|
||||||
{
|
{
|
||||||
|
switch_xml_t xml = NULL, cfg = NULL;
|
||||||
memset(&runtime, 0, sizeof(runtime));
|
memset(&runtime, 0, sizeof(runtime));
|
||||||
runtime.session_limit = 1000;
|
runtime.session_limit = 1000;
|
||||||
switch_xml_t xml = NULL, cfg = NULL;
|
|
||||||
|
|
||||||
switch_core_set_globals();
|
switch_core_set_globals();
|
||||||
|
|
||||||
|
@ -668,7 +668,7 @@ SWITCH_DECLARE(int) switch_loadable_module_get_codecs_sorted(const switch_codec_
|
|||||||
name = prefs[x];
|
name = prefs[x];
|
||||||
if ((p = strchr(name, '@'))) {
|
if ((p = strchr(name, '@'))) {
|
||||||
p++;
|
p++;
|
||||||
len = p-name;
|
len = (uint32_t)(p-name);
|
||||||
|
|
||||||
if (len > sizeof(buf)) {
|
if (len > sizeof(buf)) {
|
||||||
len = sizeof(buf);
|
len = sizeof(buf);
|
||||||
@ -683,7 +683,7 @@ SWITCH_DECLARE(int) switch_loadable_module_get_codecs_sorted(const switch_codec_
|
|||||||
for (imp = codec_interface->implementations; imp; imp = imp->next) {
|
for (imp = codec_interface->implementations; imp; imp = imp->next) {
|
||||||
if (!interval) {
|
if (!interval) {
|
||||||
array[i++] = imp;
|
array[i++] = imp;
|
||||||
} else if ((imp->microseconds_per_frame / 1000) == interval) {
|
} else if ((uint32_t)(imp->microseconds_per_frame / 1000) == interval) {
|
||||||
array[i++] = imp;
|
array[i++] = imp;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user