summaryrefslogtreecommitdiff
path: root/pjsip/src/pjsua-lib/pjsua_aud.c
diff options
context:
space:
mode:
Diffstat (limited to 'pjsip/src/pjsua-lib/pjsua_aud.c')
-rw-r--r--pjsip/src/pjsua-lib/pjsua_aud.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/pjsip/src/pjsua-lib/pjsua_aud.c b/pjsip/src/pjsua-lib/pjsua_aud.c
index beda1013..d81ac9ab 100644
--- a/pjsip/src/pjsua-lib/pjsua_aud.c
+++ b/pjsip/src/pjsua-lib/pjsua_aud.c
@@ -554,7 +554,7 @@ static void dtmf_callback(pjmedia_stream *strm, void *user_data,
if (pjsua_var.ua_cfg.cb.on_dtmf_digit) {
pjsua_call_id call_id;
- call_id = (pjsua_call_id)(long)user_data;
+ call_id = (pjsua_call_id)(pj_ssize_t)user_data;
pjsua_var.ua_cfg.cb.on_dtmf_digit(call_id, digit);
}
@@ -638,7 +638,7 @@ pj_status_t pjsua_aud_channel_update(pjsua_call_media *call_med,
if (pjsua_var.ua_cfg.cb.on_dtmf_digit) {
pjmedia_stream_set_dtmf_callback(call_med->strm.a.stream,
&dtmf_callback,
- (void*)(long)(call->index));
+ (void*)(pj_ssize_t)(call->index));
}
/* Get the port interface of the first stream in the session.
@@ -1046,7 +1046,8 @@ PJ_DEF(pj_status_t) pjsua_player_create( const pj_str_t *filename,
pj_memcpy(path, filename->ptr, filename->slen);
path[filename->slen] = '\0';
- pool = pjsua_pool_create(get_basename(path, filename->slen), 1000, 1000);
+ pool = pjsua_pool_create(get_basename(path, (unsigned)filename->slen), 1000,
+ 1000);
if (!pool) {
status = PJ_ENOMEM;
goto on_error;
@@ -1334,7 +1335,8 @@ PJ_DEF(pj_status_t) pjsua_recorder_create( const pj_str_t *filename,
pj_memcpy(path, filename->ptr, filename->slen);
path[filename->slen] = '\0';
- pool = pjsua_pool_create(get_basename(path, filename->slen), 1000, 1000);
+ pool = pjsua_pool_create(get_basename(path, (unsigned)filename->slen), 1000,
+ 1000);
if (!pool) {
status = PJ_ENOMEM;
goto on_return;