Changeset 2685
- Timestamp:
- May 7, 2009 4:51:17 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia/sound_port.c
r2506 r2685 67 67 pjmedia_snd_port *snd_port = (pjmedia_snd_port*) user_data; 68 68 pjmedia_port *port; 69 unsigned required_size = frame->size;69 const unsigned required_size = frame->size; 70 70 pj_status_t status; 71 71 … … 82 82 83 83 /* Must supply the required samples */ 84 PJ_UNUSED_ARG(required_size);85 84 pj_assert(frame->size == required_size); 86 85 … … 99 98 100 99 no_frame: 100 frame->type = PJMEDIA_FRAME_TYPE_AUDIO; 101 frame->size = required_size; 102 pj_bzero(frame->buf, frame->size); 101 103 102 104 if (snd_port->ec_state && !snd_port->ec_suspended) {
Note: See TracChangeset
for help on using the changeset viewer.