Ignore:
Timestamp:
May 9, 2019 7:24:57 AM (3 years ago)
Author:
nanang
Message:

Re #1298: Updated PJMEDIA* to use PJ_ERROR consistently.

File:
1 edited

Legend:

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

    r5860 r5982  
    515515#endif 
    516516 
    517     if (pjmedia_endpt_atexit(endpt, pjmedia_srtp_deinit_lib) != PJ_SUCCESS) 
    518     { 
     517    status = pjmedia_endpt_atexit(endpt, pjmedia_srtp_deinit_lib); 
     518    if (status != PJ_SUCCESS) { 
    519519        /* There will be memory leak when it fails to schedule libsrtp 
    520520         * deinitialization, however the memory leak could be harmless, 
     
    522522         * when the application terminates. 
    523523         */ 
    524         PJ_LOG(4, (THIS_FILE, "Failed to register libsrtp deinit.")); 
     524        PJ_PERROR(4, (THIS_FILE, status, 
     525                      "Failed to register libsrtp deinit.")); 
     526 
     527        /* Ignore this error */ 
     528        status = PJ_SUCCESS; 
    525529    } 
    526530 
     
    17581762    status = pjmedia_transport_media_stop(srtp->member_tp); 
    17591763    if (status != PJ_SUCCESS) 
    1760         PJ_LOG(4, (srtp->pool->obj_name, 
    1761                    "SRTP failed stop underlying media transport.")); 
     1764        PJ_PERROR(4, (srtp->pool->obj_name, status, 
     1765                      "SRTP failed stop underlying media transport.")); 
    17621766 
    17631767    /* Finally, stop SRTP */ 
Note: See TracChangeset for help on using the changeset viewer.