diff options
author | Benny Prijono <bennylp@teluu.com> | 2011-12-27 12:47:52 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2011-12-27 12:47:52 +0000 |
commit | 8522626d02647b2996d7dc62d0486422286a62f6 (patch) | |
tree | 08a9bb4a85779ab6db054ecbd5d34ef12bf7a138 /pjsip/src/pjsua-lib/pjsua_vid.c | |
parent | b4e325ab84c2cc79110545c76e437f1e3cdd47ea (diff) |
More re #1419: changed field names from video_count to vid_cnt and audio_cnt to aud_cnt for better consistency
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3925 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip/src/pjsua-lib/pjsua_vid.c')
-rw-r--r-- | pjsip/src/pjsua-lib/pjsua_vid.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/pjsip/src/pjsua-lib/pjsua_vid.c b/pjsip/src/pjsua-lib/pjsua_vid.c index 1e87b0a8..bff1fa87 100644 --- a/pjsip/src/pjsua-lib/pjsua_vid.c +++ b/pjsip/src/pjsua-lib/pjsua_vid.c @@ -1630,7 +1630,7 @@ static pj_status_t call_add_video(pjsua_call *call, if (status != PJ_SUCCESS) goto on_error; - call->opt.video_cnt++; + call->opt.vid_cnt++; return PJ_SUCCESS; @@ -1700,7 +1700,7 @@ static pj_status_t call_modify_video(pjsua_call *call, if (call_med->dir == PJMEDIA_DIR_NONE) { unsigned i, vid_cnt = 0; - /* Check if video_cnt in call option needs to be increased */ + /* Check if vid_cnt in call option needs to be increased */ for (i = 0; i < call->med_cnt; ++i) { if (call->media[i].type == PJMEDIA_TYPE_VIDEO && call->media[i].dir != PJMEDIA_DIR_NONE) @@ -1708,8 +1708,8 @@ static pj_status_t call_modify_video(pjsua_call *call, ++vid_cnt; } } - if (call->opt.video_cnt <= vid_cnt) - call->opt.video_cnt++; + if (call->opt.vid_cnt <= vid_cnt) + call->opt.vid_cnt++; } status = pjsua_call_media_init(call_med, PJMEDIA_TYPE_VIDEO, @@ -1789,7 +1789,7 @@ on_error: /* Deactivate the stream */ pjmedia_sdp_media_deactivate(pool, sdp->media[med_idx]); - call->opt.video_cnt--; + call->opt.vid_cnt--; } status = call_reoffer_sdp(call->index, sdp); |