Changeset 3893 for pjproject/trunk/pjmedia/src/pjmedia-videodev/sdl_dev.c
- Timestamp:
- Dec 1, 2011 10:49:07 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia-videodev/sdl_dev.c
r3864 r3893 309 309 if (strm) 310 310 pjmedia_event_init(pevent, PJMEDIA_EVENT_NONE, &strm->last_ts, 311 &strm->base.epub);311 strm); 312 312 313 313 return strm; … … 355 355 pj_status_t status; 356 356 357 pjmedia_event_publish( &strm->base.epub, &pevent);357 pjmedia_event_publish(NULL, strm, &pevent, 0); 358 358 359 359 switch (pevent.type) { … … 376 376 sdl_destroy_all(strm); 377 377 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); 381 380 382 381 /* … … 917 916 pj_memcpy(&strm->vid_cb, cb, sizeof(*cb)); 918 917 strm->user_data = user_data; 919 pjmedia_event_publisher_init(&strm->base.epub, PJMEDIA_SIG_VID_DEV_SDL);920 918 921 919 /* Create render stream here */
Note: See TracChangeset
for help on using the changeset viewer.