- Timestamp:
- Jun 13, 2009 3:51:30 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia/stream.c
r2759 r2761 208 208 /* Keep-alive packet is empty RTP */ 209 209 pj_status_t status; 210 void *rtphdr; 210 211 int pkt_len; 211 212 212 213 213 214 status = pjmedia_rtp_encode_rtp( &stream->enc->rtp, 214 stream->enc->pt, 1,215 stream->enc->pt, 0, 215 216 1, 216 217 0, 217 (const void**) stream->enc->out_pkt,218 (const void**)&rtphdr, 218 219 &pkt_len); 219 220 pj_assert(status == PJ_SUCCESS); 221 222 pj_memcpy(stream->enc->out_pkt, rtphdr, pkt_len); 220 223 pjmedia_transport_send_rtp(stream->transport, stream->enc->out_pkt, 221 224 pkt_len); … … 1806 1809 /* Initially disable the VAD in the stream, to help traverse NAT better */ 1807 1810 stream->vad_enabled = stream->codec_param.setting.vad; 1808 if ( stream->vad_enabled) {1811 if (PJMEDIA_STREAM_VAD_SUSPEND_MSEC > 0 && stream->vad_enabled) { 1809 1812 stream->codec_param.setting.vad = 0; 1810 1813 stream->ts_vad_disabled = 0;
Note: See TracChangeset
for help on using the changeset viewer.