Changeset 4341


Ignore:
Timestamp:
Feb 5, 2013 12:21:30 PM (7 years ago)
Author:
nanang
Message:

Misc (re #1562): pjsua_call_set_vid_strm() should acquire call dialog.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_vid.c

    r4254 r4341  
    20372037{ 
    20382038    pjsua_call *call; 
     2039    pjsip_dialog *dlg; 
    20392040    pjsua_call_vid_strm_op_param param_; 
    20402041    pj_status_t status; 
     
    20482049    pj_log_push_indent(); 
    20492050 
    2050     PJSUA_LOCK(); 
    2051  
    2052     call = &pjsua_var.calls[call_id]; 
     2051    status = acquire_call("pjsua_call_set_vid_strm()", call_id, &call, &dlg); 
     2052    if (status != PJ_SUCCESS) 
     2053        goto on_return; 
    20532054 
    20542055    if (param) { 
     
    21052106    } 
    21062107 
    2107     PJSUA_UNLOCK(); 
     2108on_return: 
     2109    if (dlg) pjsip_dlg_dec_lock(dlg); 
    21082110    pj_log_pop_indent(); 
    2109  
    21102111    return status; 
    21112112} 
Note: See TracChangeset for help on using the changeset viewer.