mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-04 20:17:41 +00:00
update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5274 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
88be7deec9
commit
49d5f15a91
@ -284,7 +284,7 @@ void client_run(int client_socket, char *local_ip, int local_port, char *remote_
|
|||||||
|
|
||||||
for (;;) {
|
for (;;) {
|
||||||
struct sockaddr_in local_addr = {0};
|
struct sockaddr_in local_addr = {0};
|
||||||
int cliAddrLen = sizeof(local_addr);
|
size_t cliAddrLen = sizeof(local_addr);
|
||||||
unsigned char audiobuf[1024], rawbuf[1024], outbuf[1024];
|
unsigned char audiobuf[1024], rawbuf[1024], outbuf[1024];
|
||||||
short *usebuf = NULL;
|
short *usebuf = NULL;
|
||||||
int tx, tx_bytes, bigger, sample_count;
|
int tx, tx_bytes, bigger, sample_count;
|
||||||
@ -316,7 +316,7 @@ void client_run(int client_socket, char *local_ip, int local_port, char *remote_
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((read_bytes = recvfrom(usock, audiobuf, sizeof(audiobuf), 0, (struct sockaddr *) &local_addr, cliAddrLen)) < 0) {
|
if ((read_bytes = recvfrom(usock, audiobuf, sizeof(audiobuf), 0, (struct sockaddr *) &local_addr, &cliAddrLen)) < 0) {
|
||||||
die("recvfrom() failed");
|
die("recvfrom() failed");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user