Re #1474: merged r4100-4107
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@4108 74dad513-b988-da41-8d7b-12977e46ad98
This commit is contained in:
parent
d2360f8143
commit
b15e7caa0b
|
@ -6634,9 +6634,8 @@ $as_echo "ok" >&6; }
|
|||
else
|
||||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
|
||||
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
|
||||
{ as_fn_set_status run with --help for more info
|
||||
as_fn_error "Error: unable to recognize your IPP installation. Make sure the paths and ARCH suffix are set correctly
|
||||
See \`config.log' for more details." "$LINENO" 5; }; }
|
||||
as_fn_error "Error: unable to recognize your IPP installation. Make sure the paths and ARCH suffix are set correctly, run with --help for more info
|
||||
See \`config.log' for more details." "$LINENO" 5; }
|
||||
fi
|
||||
rm -f core conftest.err conftest.$ac_objext \
|
||||
conftest$ac_exeext conftest.$ac_ext
|
||||
|
|
|
@ -1111,7 +1111,7 @@ if test "x$enable_ipp" != "xno"; then
|
|||
]],
|
||||
[ippStaticInit();])],
|
||||
[AC_MSG_RESULT(ok)],
|
||||
[AC_MSG_FAILURE(Error: unable to recognize your IPP installation. Make sure the paths and ARCH suffix are set correctly, run with --help for more info)])
|
||||
[AC_MSG_FAILURE([Error: unable to recognize your IPP installation. Make sure the paths and ARCH suffix are set correctly, run with --help for more info])])
|
||||
|
||||
CFLAGS="$SAVED_CFLAGS"
|
||||
LDFLAGS="$SAVED_LDFLAGS"
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
|
||||
static pj_ioqueue_key_t *key;
|
||||
static pj_atomic_t *total_bytes;
|
||||
static pj_bool_t thread_quit_flag;
|
||||
|
||||
struct op_key
|
||||
{
|
||||
|
@ -145,12 +146,12 @@ static int worker_thread(void *arg)
|
|||
on_read_complete(key, &read_op.op_key_, length);
|
||||
}
|
||||
|
||||
for (;;) {
|
||||
while (!thread_quit_flag) {
|
||||
pj_time_val timeout;
|
||||
timeout.sec = 0; timeout.msec = 10;
|
||||
rc = pj_ioqueue_poll(ioqueue, &timeout);
|
||||
}
|
||||
PJ_UNREACHED(return 0;)
|
||||
return 0;
|
||||
}
|
||||
|
||||
int udp_echo_srv_ioqueue(void)
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
#include <pjlib.h>
|
||||
|
||||
static pj_atomic_t *total_bytes;
|
||||
static pj_bool_t thread_quit_flag = 0;
|
||||
|
||||
static int worker_thread(void *arg)
|
||||
{
|
||||
|
@ -28,7 +29,7 @@ static int worker_thread(void *arg)
|
|||
char buf[512];
|
||||
pj_status_t last_recv_err = PJ_SUCCESS, last_write_err = PJ_SUCCESS;
|
||||
|
||||
for (;;) {
|
||||
while (!thread_quit_flag) {
|
||||
pj_ssize_t len;
|
||||
pj_status_t rc;
|
||||
pj_sockaddr_in addr;
|
||||
|
@ -56,7 +57,7 @@ static int worker_thread(void *arg)
|
|||
continue;
|
||||
}
|
||||
}
|
||||
PJ_UNREACHED(return 0;)
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -961,7 +961,7 @@ static pj_status_t send_rtcp(pjmedia_stream *stream,
|
|||
PJ_PERROR(4,(stream->port.info.name.ptr, status,
|
||||
"Error generating RTCP SDES"));
|
||||
} else {
|
||||
len += sdes_len;
|
||||
len += (int)sdes_len;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1019,7 +1019,7 @@ static pj_status_t send_rtcp(pjmedia_stream *stream,
|
|||
PJ_PERROR(4,(stream->port.info.name.ptr, status,
|
||||
"Error generating RTCP BYE"));
|
||||
} else {
|
||||
len += bye_len;
|
||||
len += (int)bye_len;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -263,8 +263,14 @@ PJ_DEF(void) pjsip_resolve( pjsip_resolver_t *resolver,
|
|||
/* Resolve */
|
||||
count = 1;
|
||||
status = pj_getaddrinfo(af, &target->addr.host, &count, &ai);
|
||||
if (status != PJ_SUCCESS)
|
||||
if (status != PJ_SUCCESS) {
|
||||
/* "Normalize" error to PJ_ERESOLVE. This is a special error
|
||||
* because it will be translated to SIP status 502 by
|
||||
* sip_transaction.c
|
||||
*/
|
||||
status = PJ_ERESOLVE;
|
||||
goto on_error;
|
||||
}
|
||||
|
||||
svr_addr.entry[0].addr.addr.sa_family = (pj_uint16_t)af;
|
||||
pj_memcpy(&svr_addr.entry[0].addr, &ai.ai_addr,
|
||||
|
|
Loading…
Reference in New Issue