mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-05 12:29:33 +00:00
use the right data types.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4912 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
e6c61c37e6
commit
0734faef39
@ -83,7 +83,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_sleep(switch_core_session_t *session,
|
|||||||
static void *SWITCH_THREAD_FUNC unicast_thread_run(switch_thread_t *thread, void *obj)
|
static void *SWITCH_THREAD_FUNC unicast_thread_run(switch_thread_t *thread, void *obj)
|
||||||
{
|
{
|
||||||
switch_unicast_conninfo_t *conninfo = (switch_unicast_conninfo_t *) obj;
|
switch_unicast_conninfo_t *conninfo = (switch_unicast_conninfo_t *) obj;
|
||||||
uint32_t len;
|
switch_size_t len;
|
||||||
switch_channel_t *channel;
|
switch_channel_t *channel;
|
||||||
|
|
||||||
if (!conninfo) {
|
if (!conninfo) {
|
||||||
@ -97,7 +97,7 @@ static void *SWITCH_THREAD_FUNC unicast_thread_run(switch_thread_t *thread, void
|
|||||||
if (switch_socket_recv(conninfo->socket, conninfo->write_frame.data, &len) != SWITCH_STATUS_SUCCESS || len == 0) {
|
if (switch_socket_recv(conninfo->socket, conninfo->write_frame.data, &len) != SWITCH_STATUS_SUCCESS || len == 0) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
conninfo->write_frame.datalen = len;
|
conninfo->write_frame.datalen = (uint32_t)len;
|
||||||
conninfo->write_frame.samples = conninfo->write_frame.datalen / 2;
|
conninfo->write_frame.samples = conninfo->write_frame.datalen / 2;
|
||||||
switch_core_session_write_frame(conninfo->session, &conninfo->write_frame, -1, conninfo->stream_id);
|
switch_core_session_write_frame(conninfo->session, &conninfo->write_frame, -1, conninfo->stream_id);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user