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

Closed #1420: Add support for event manager

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia-videodev/sdl_dev.c

    r3864 r3893  
    309309    if (strm) 
    310310        pjmedia_event_init(pevent, PJMEDIA_EVENT_NONE, &strm->last_ts, 
    311                            &strm->base.epub); 
     311                           strm); 
    312312 
    313313    return strm; 
     
    355355            pj_status_t status; 
    356356 
    357             pjmedia_event_publish(&strm->base.epub, &pevent); 
     357            pjmedia_event_publish(NULL, strm, &pevent, 0); 
    358358 
    359359            switch (pevent.type) { 
     
    376376                sdl_destroy_all(strm); 
    377377                pjmedia_event_init(&pevent, PJMEDIA_EVENT_WND_CLOSED, 
    378                                    &strm->last_ts, 
    379                                    &strm->base.epub); 
    380                 pjmedia_event_publish(&strm->base.epub, &pevent); 
     378                                   &strm->last_ts, strm); 
     379                pjmedia_event_publish(NULL, strm, &pevent, 0); 
    381380 
    382381                /* 
     
    917916    pj_memcpy(&strm->vid_cb, cb, sizeof(*cb)); 
    918917    strm->user_data = user_data; 
    919     pjmedia_event_publisher_init(&strm->base.epub, PJMEDIA_SIG_VID_DEV_SDL); 
    920918 
    921919    /* Create render stream here */ 
Note: See TracChangeset for help on using the changeset viewer.