Ignore:
Timestamp:
Mar 16, 2011 7:34:16 AM (14 years ago)
Author:
nanang
Message:

Fix #1212:

  • Updated pj_register_strerror() to just return PJ_SUCCESS when the same range

and handler is being re-registered.

  • Removed the usage of static flag of error string handler registration in some

modules, which prevent the re-registration of the handler, e.g: in restarting
pjsua, as such flags never got reseted.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia-audiodev/audiodev.c

    r3440 r3455  
    365365{ 
    366366    unsigned i; 
    367     pj_status_t status = PJ_SUCCESS; 
     367    pj_status_t status; 
    368368 
    369369    /* Allow init() to be called multiple times as long as there is matching 
     
    375375 
    376376    /* Register error subsystem */ 
    377     pj_register_strerror(PJMEDIA_AUDIODEV_ERRNO_START,  
    378                          PJ_ERRNO_SPACE_SIZE,  
    379                          &pjmedia_audiodev_strerror); 
     377    status = pj_register_strerror(PJMEDIA_AUDIODEV_ERRNO_START,  
     378                                  PJ_ERRNO_SPACE_SIZE,  
     379                                  &pjmedia_audiodev_strerror); 
     380    pj_assert(status == PJ_SUCCESS); 
    380381 
    381382    /* Init */ 
Note: See TracChangeset for help on using the changeset viewer.