diff options
author | Benny Prijono <bennylp@teluu.com> | 2012-06-21 08:09:53 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2012-06-21 08:09:53 +0000 |
commit | b1eca09ffbec5ba011743bfee90cdeabf545b16b (patch) | |
tree | 815c11b1f39e1f8a70b34c93dfeae02fddff8f8e /pjsip-apps/src/3rdparty_media_sample/alt_pjsua_aud.c | |
parent | 8f176cf7c8af5c681b7b616500b6eb32adb28887 (diff) |
Fixed #1541: Crash in third party media sample application after library is restarted
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4174 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip-apps/src/3rdparty_media_sample/alt_pjsua_aud.c')
-rw-r--r-- | pjsip-apps/src/3rdparty_media_sample/alt_pjsua_aud.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/pjsip-apps/src/3rdparty_media_sample/alt_pjsua_aud.c b/pjsip-apps/src/3rdparty_media_sample/alt_pjsua_aud.c index 5bf80ae5..2b85421e 100644 --- a/pjsip-apps/src/3rdparty_media_sample/alt_pjsua_aud.c +++ b/pjsip-apps/src/3rdparty_media_sample/alt_pjsua_aud.c @@ -224,7 +224,7 @@ static void timer_to_send_aud_rtp(void *user_data) pjsua_call_media *call_med = (pjsua_call_media*) user_data; const char *pkt = "Not RTP packet"; - if (call_med->call->inv == NULL) { + if (!call_med->call || !call_med->call->inv || !call_med->tp) { /* Call has been disconnected. There is race condition here as * this cb may be called sometime after call has been disconnected */ return; @@ -240,7 +240,7 @@ static void timer_to_send_aud_rtcp(void *user_data) pjsua_call_media *call_med = (pjsua_call_media*) user_data; const char *pkt = "Not RTCP packet"; - if (call_med->call->inv == NULL) { + if (!call_med->call || !call_med->call->inv || !call_med->tp) { /* Call has been disconnected. There is race condition here as * this cb may be called sometime after call has been disconnected */ return; @@ -301,6 +301,9 @@ on_return: return status; } +void pjsua_check_snd_dev_idle() +{ +} /***************************************************************************** * |