Changeset 3893 for pjproject/trunk/pjsip/src/pjsua-lib/pjsua_media.c
- Timestamp:
- Dec 1, 2011 10:49:07 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_media.c
r3892 r3893 1254 1254 1255 1255 /* Callback to receive media events */ 1256 static pj_status_t call_media_on_event(pjmedia_event_subscription *esub,1257 pjmedia_event *event)1258 { 1259 pjsua_call_media *call_med = (pjsua_call_media*) esub->user_data;1256 pj_status_t call_media_on_event(pjmedia_event *event, 1257 void *user_data) 1258 { 1259 pjsua_call_media *call_med = (pjsua_call_media*)user_data; 1260 1260 pjsua_call *call = call_med->call; 1261 1261 1262 1262 if (pjsua_var.ua_cfg.cb.on_call_media_event && call) { 1263 ++event->proc_cnt;1264 1263 (*pjsua_var.ua_cfg.cb.on_call_media_event)(call->index, 1265 1264 call_med->idx, event); … … 1425 1424 call_med->strm.v.cap_dev = info.id; 1426 1425 } 1427 1428 /* Init event subscribtion */1429 pjmedia_event_subscription_init(&call_med->esub_rend, &call_media_on_event,1430 call_med);1431 pjmedia_event_subscription_init(&call_med->esub_cap, &call_media_on_event,1432 call_med);1433 1426 } 1434 1427 #endif
Note: See TracChangeset
for help on using the changeset viewer.