- Timestamp:
- Feb 18, 2009 2:28:49 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/projects/aps-direct/pjmedia/src/pjmedia/stream.c
r2457 r2460 868 868 } else if (frame->type == PJMEDIA_FRAME_TYPE_AUDIO && 869 869 frame->buf == NULL && 870 stream->port.info.format. fmt_id == PJMEDIA_FORMAT_L16 &&870 stream->port.info.format.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.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); 1608 stream->port.info.format.id = info->param->info.fmt_id; 1611 1609 stream->port.port_data.pdata = stream; 1612 if (stream->port.info.format. fmt_id == PJMEDIA_FORMAT_L16) {1610 if (stream->port.info.format.id == PJMEDIA_FORMAT_L16) { 1613 1611 stream->port.put_frame = &put_frame; 1614 1612 stream->port.get_frame = &get_frame; 1615 1613 } else { 1614 stream->port.info.format.bitrate = info->param->info.avg_bps; 1615 stream->port.info.format.vad = (info->param->setting.vad != 0); 1616 1616 1617 stream->port.put_frame = &put_frame; 1617 1618 stream->port.get_frame = &get_frame_ext;
Note: See TracChangeset
for help on using the changeset viewer.