diff options
author | Nanang Izzuddin <nanang@teluu.com> | 2011-03-16 07:34:16 +0000 |
---|---|---|
committer | Nanang Izzuddin <nanang@teluu.com> | 2011-03-16 07:34:16 +0000 |
commit | 2a9988f3e4c9b8d40ffebaa4427908de29324711 (patch) | |
tree | 0fec17a1ff6201f61e16e3bb03821c62080be372 /pjsip-apps/src | |
parent | e8673ffff74a0e9a63ce789e884a98a369bc8cc3 (diff) |
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.
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@3455 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip-apps/src')
-rw-r--r-- | pjsip-apps/src/samples/latency.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pjsip-apps/src/samples/latency.c b/pjsip-apps/src/samples/latency.c index 90c17216..92d3d7b1 100644 --- a/pjsip-apps/src/samples/latency.c +++ b/pjsip-apps/src/samples/latency.c @@ -168,8 +168,9 @@ int main(int argc, char *argv[]) NULL /* callback on error */ ); - pj_register_strerror(PJMEDIA_ERRNO_START, PJ_ERRNO_SPACE_SIZE, - &pjmedia_strerror); + status = pj_register_strerror(PJMEDIA_ERRNO_START, PJ_ERRNO_SPACE_SIZE, + &pjmedia_strerror); + pj_assert(status == PJ_SUCCESS); /* Wav */ status = pjmedia_wav_player_port_create( pool, /* memory pool */ |