Ignore:
Timestamp:
Dec 1, 2011 10:49:07 AM (12 years ago)
Author:
ming
Message:

Closed #1420: Add support for event manager

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_media.c

    r3892 r3893  
    12541254 
    12551255/* 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; 
     1256pj_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; 
    12601260    pjsua_call *call = call_med->call; 
    12611261 
    12621262    if (pjsua_var.ua_cfg.cb.on_call_media_event && call) { 
    1263         ++event->proc_cnt; 
    12641263        (*pjsua_var.ua_cfg.cb.on_call_media_event)(call->index, 
    12651264                                                   call_med->idx, event); 
     
    14251424                call_med->strm.v.cap_dev = info.id; 
    14261425            } 
    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); 
    14331426        } 
    14341427#endif 
Note: See TracChangeset for help on using the changeset viewer.