Changeset 4616


Ignore:
Timestamp:
Oct 8, 2013 11:15:22 AM (11 years ago)
Author:
bennylp
Message:

Re #1703 General bug fixes: fixed mutex not released on some error condition

Location:
pjproject/trunk/pjmedia/src/pjmedia
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia/codec.c

    r4254 r4616  
    637637    /* Update codec param */ 
    638638    p->param = pjmedia_codec_param_clone(pool, param); 
    639     if (!p->param) 
     639    if (!p->param) { 
     640        pj_mutex_unlock(mgr->mutex); 
    640641        return PJ_EINVAL; 
     642    } 
    641643 
    642644    pj_mutex_unlock(mgr->mutex); 
  • pjproject/trunk/pjmedia/src/pjmedia/vid_codec.c

    r4008 r4616  
    723723    /* Update codec default param */ 
    724724    p->param = pjmedia_vid_codec_param_clone(pool, param); 
    725     if (!p->param) 
     725    if (!p->param) { 
     726        pj_mutex_unlock(mgr->mutex); 
    726727        return PJ_EINVAL; 
     728    } 
    727729 
    728730    codec_desc->def_param = p; 
Note: See TracChangeset for help on using the changeset viewer.