Skip to content

Commit

Permalink
Fix build warning on VS2022
Browse files Browse the repository at this point in the history
  • Loading branch information
trengginas committed Oct 30, 2023
1 parent 86097b9 commit 3614423
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions pjsip-apps/src/samples/pjsua2_demo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ class MyAudioMediaPort: public AudioMediaPort

virtual void onFrameReceived(MediaFrame &frame)
{
PJ_UNUSED_ARG(frame);
// Process the incoming frame here
}
};
Expand Down
2 changes: 2 additions & 0 deletions pjsip/include/pjsua2/call.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -678,6 +678,8 @@ struct StreamInfo
dir(PJMEDIA_DIR_NONE),
txPt(0),
rxPt(0),
audTxEventPt(0),
audRxEventPt(0),
codecClockRate(0),
jbInit(-1),
jbMinPre(-1),
Expand Down
4 changes: 2 additions & 2 deletions pjsip/src/pjsua-lib/pjsua_acc.c
Original file line number Diff line number Diff line change
Expand Up @@ -3449,7 +3449,7 @@ pj_status_t pjsua_acc_get_uac_addr(pjsua_acc_id acc_id,

/* If the URI uses sips scheme, make sure we use secure transport. */
if (PJSIP_URI_SCHEME_IS_SIPS(sip_uri)) {
unsigned flag, tp_flag;
unsigned tp_flag;

tp_flag = PJSIP_TRANSPORT_SECURE;
flag = pjsip_transport_get_flag_from_type(tp_type);
Expand Down Expand Up @@ -3869,7 +3869,7 @@ PJ_DEF(pj_status_t) pjsua_acc_create_uas_contact( pj_pool_t *pool,

/* If the URI uses sips scheme, make sure we use secure transport. */
if (PJSIP_URI_SCHEME_IS_SIPS(sip_uri)) {
unsigned flag, tp_flag;
unsigned tp_flag;

tp_flag = PJSIP_TRANSPORT_SECURE;
flag = pjsip_transport_get_flag_from_type(tp_type);
Expand Down

0 comments on commit 3614423

Please sign in to comment.