Ignore:
Timestamp:
Jun 21, 2012 8:09:53 AM (12 years ago)
Author:
bennylp
Message:

Fixed #1541: Crash in third party media sample application after library is restarted

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip-apps/src/3rdparty_media_sample/alt_pjsua_aud.c

    r3983 r4174  
    225225    const char *pkt = "Not RTP packet"; 
    226226 
    227     if (call_med->call->inv == NULL) { 
     227    if (!call_med->call || !call_med->call->inv || !call_med->tp) { 
    228228        /* Call has been disconnected. There is race condition here as 
    229229         * this cb may be called sometime after call has been disconnected */ 
     
    241241    const char *pkt = "Not RTCP packet"; 
    242242 
    243     if (call_med->call->inv == NULL) { 
     243    if (!call_med->call || !call_med->call->inv || !call_med->tp) { 
    244244        /* Call has been disconnected. There is race condition here as 
    245245         * this cb may be called sometime after call has been disconnected */ 
     
    302302} 
    303303 
     304void pjsua_check_snd_dev_idle() 
     305{ 
     306} 
    304307 
    305308/***************************************************************************** 
Note: See TracChangeset for help on using the changeset viewer.