Changeset 5920 for pjproject/trunk/pjsip/src/pjsua-lib/pjsua_media.c
- Timestamp:
- Dec 12, 2018 7:16:46 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_media.c
r5918 r5920 1427 1427 { 1428 1428 pjsua_call_media *call_med = (pjsua_call_media*)user_data; 1429 pjsua_call *call = call_med ->call;1429 pjsua_call *call = call_med? call_med->call : NULL; 1430 1430 pj_status_t status = PJ_SUCCESS; 1431 1431 … … 1471 1471 } 1472 1472 1473 if (pjsua_var.ua_cfg.cb.on_call_media_event && call) { 1474 (*pjsua_var.ua_cfg.cb.on_call_media_event)(call->index, 1475 call_med->idx, event); 1473 if (pjsua_var.ua_cfg.cb.on_call_media_event) { 1474 if (call) { 1475 (*pjsua_var.ua_cfg.cb.on_call_media_event)(call->index, 1476 call_med->idx, event); 1477 } else { 1478 /* Also deliver non call events such as audio device error */ 1479 (*pjsua_var.ua_cfg.cb.on_call_media_event)(PJSUA_INVALID_ID, 1480 0, event); 1481 } 1476 1482 } 1477 1483
Note: See TracChangeset
for help on using the changeset viewer.