- Timestamp:
- Jun 21, 2012 8:09:53 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.