summaryrefslogtreecommitdiff
path: root/pjsip/src/pjsua-lib/pjsua_aud.c
diff options
context:
space:
mode:
authorRiza Sulistyo <riza@teluu.com>2013-06-19 06:47:43 +0000
committerRiza Sulistyo <riza@teluu.com>2013-06-19 06:47:43 +0000
commitd7aa4332dae06ae890053dd13239ddabee46b86c (patch)
tree34c599b317369bcc33827d5ee1200604a6599164 /pjsip/src/pjsua-lib/pjsua_aud.c
parent7949b9e53b97281cfa4526ffe5cf7c7d887b7025 (diff)
Re #1680: Add initial support for Win64
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4537 74dad513-b988-da41-8d7b-12977e46ad98
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;