- Timestamp:
- Jul 15, 2011 6:18:29 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/projects/2.0-dev/pjsip/src/pjsua-lib/pjsua_media.c
r3634 r3652 1313 1313 } 1314 1314 1315 /* Callback to receive media events */ 1316 static pj_status_t call_media_on_event(pjmedia_event_subscription *esub, 1317 pjmedia_event *event) 1318 { 1319 pjsua_call_media *call_med = (pjsua_call_media*)esub->user_data; 1320 pjsua_call *call = call_med->call; 1321 1322 if (pjsua_var.ua_cfg.cb.on_call_media_event && call) { 1323 ++event->proc_cnt; 1324 (*pjsua_var.ua_cfg.cb.on_call_media_event)(call->index, 1325 call_med->idx, event); 1326 } 1327 1328 return PJ_SUCCESS; 1329 } 1330 1315 1331 /* Initialize the media line */ 1316 1332 pj_status_t pjsua_call_media_init(pjsua_call_media *call_med, … … 1410 1426 PJ_UNUSED_ARG(security_level); 1411 1427 #endif 1428 1429 pjmedia_event_subscription_init(&call_med->esub, &call_media_on_event, 1430 call_med); 1412 1431 1413 1432 return PJ_SUCCESS; … … 2170 2189 } 2171 2190 2172 2173 pj_status_t video_channel_update(pjsua_call_media *call_med,2174 pj_pool_t *tmp_pool,2175 const pjmedia_sdp_session *local_sdp,2176 const pjmedia_sdp_session *remote_sdp);2177 2178 2191 pj_status_t pjsua_media_channel_update(pjsua_call_id call_id, 2179 2192 const pjmedia_sdp_session *local_sdp,
Note: See TracChangeset
for help on using the changeset viewer.