Changeset 4174
- Timestamp:
- Jun 21, 2012 8:09:53 AM (12 years ago)
- Location:
- pjproject/trunk/pjsip-apps/src/3rdparty_media_sample
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/3rdparty_media_sample/alt_pjsua_aud.c
r3983 r4174 225 225 const char *pkt = "Not RTP packet"; 226 226 227 if ( call_med->call->inv == NULL) {227 if (!call_med->call || !call_med->call->inv || !call_med->tp) { 228 228 /* Call has been disconnected. There is race condition here as 229 229 * this cb may be called sometime after call has been disconnected */ … … 241 241 const char *pkt = "Not RTCP packet"; 242 242 243 if ( call_med->call->inv == NULL) {243 if (!call_med->call || !call_med->call->inv || !call_med->tp) { 244 244 /* Call has been disconnected. There is race condition here as 245 245 * this cb may be called sometime after call has been disconnected */ … … 302 302 } 303 303 304 void pjsua_check_snd_dev_idle() 305 { 306 } 304 307 305 308 /***************************************************************************** -
pjproject/trunk/pjsip-apps/src/3rdparty_media_sample/alt_pjsua_vid.c
r3983 r4174 235 235 pj_status_t pjsua_vid_subsys_destroy(void) 236 236 { 237 if (pjmedia_vid_codec_mgr_instance()) 238 pjmedia_vid_codec_mgr_destroy(NULL); 239 240 if (pjmedia_video_format_mgr_instance()) 241 pjmedia_video_format_mgr_destroy(NULL); 242 237 243 /* 238 244 * TODO: put your 3rd party library cleanup routine here … … 292 298 const char *pkt = "Not RTP packet"; 293 299 294 if ( call_med->call->inv == NULL) {300 if (!call_med->call || !call_med->call->inv || !call_med->tp) { 295 301 /* Call has been disconnected. There is race condition here as 296 302 * this cb may be called sometime after call has been disconnected */ … … 308 314 const char *pkt = "Not RTCP packet"; 309 315 310 if ( call_med->call->inv == NULL) {316 if (!call_med->call || !call_med->call->inv || !call_med->tp) { 311 317 /* Call has been disconnected. There is race condition here as 312 318 * this cb may be called sometime after call has been disconnected */
Note: See TracChangeset
for help on using the changeset viewer.