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/pjsip-apps/src/samples/latency.c

    r2394 r3455  
    169169                           ); 
    170170 
    171     pj_register_strerror(PJMEDIA_ERRNO_START, PJ_ERRNO_SPACE_SIZE,  
    172                          &pjmedia_strerror); 
     171    status = pj_register_strerror(PJMEDIA_ERRNO_START, PJ_ERRNO_SPACE_SIZE,  
     172                                  &pjmedia_strerror); 
     173    pj_assert(status == PJ_SUCCESS); 
    173174 
    174175    /* Wav */ 
Note: See TracChangeset for help on using the changeset viewer.