- Timestamp:
- Feb 17, 2009 3:19:45 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/projects/aps-direct/pjmedia/src/pjmedia/stream.c
r2456 r2457 868 868 } else if (frame->type == PJMEDIA_FRAME_TYPE_AUDIO && 869 869 frame->buf == NULL && 870 stream->port.info.format. u32== PJMEDIA_FORMAT_L16 &&870 stream->port.info.format.fmt_id == PJMEDIA_FORMAT_L16 && 871 871 (stream->dir & PJMEDIA_DIR_ENCODING) && 872 872 stream->codec_param.info.frm_ptime * … … 1606 1606 stream->port.info.clock_rate = info->fmt.clock_rate; 1607 1607 stream->port.info.channel_count = info->fmt.channel_cnt; 1608 stream->port.info.format = info->param->info.format; 1608 stream->port.info.format.fmt_id = info->param->info.fmt_id; 1609 stream->port.info.format.bitrate = info->param->info.avg_bps; 1610 stream->port.info.format.vad = (info->param->setting.vad != 0); 1609 1611 stream->port.port_data.pdata = stream; 1610 if (stream->port.info.format. u32== PJMEDIA_FORMAT_L16) {1612 if (stream->port.info.format.fmt_id == PJMEDIA_FORMAT_L16) { 1611 1613 stream->port.put_frame = &put_frame; 1612 1614 stream->port.get_frame = &get_frame;
Note: See TracChangeset
for help on using the changeset viewer.