Commit 92a94dea authored by Gautier Pelloux-Prayer's avatar Gautier Pelloux-Prayer
Browse files

remove audio_stream_process_rtcp method's body since its a duplication of media_stream_process_rtcp

parent e0d80e11
......@@ -122,25 +122,6 @@ static void audio_stream_configure_resampler(MSFilter *resampler,MSFilter *from,
}
static void audio_stream_process_rtcp(MediaStream *media_stream, mblk_t *m){
AudioStream *stream=(AudioStream*)media_stream;
do{
const report_block_t *rb=NULL;
if (rtcp_is_SR(m)){
rb=rtcp_SR_get_report_block(m,0);
}else if (rtcp_is_RR(m)){
rb=rtcp_RR_get_report_block(m,0);
}
if (rb){
unsigned int ij;
float rt=rtp_session_get_round_trip_propagation(stream->ms.sessions.rtp_session);
float flost;
ij=report_block_get_interarrival_jitter(rb);
flost=(float)(100.0*report_block_get_fraction_lost(rb)/256.0);
ms_message("audio_stream_iterate[%p]: remote statistics available\n\tremote's interarrival jitter=%u\n"
"\tremote's lost packets percentage since last report=%f\n\tround trip time=%f seconds",stream,ij,flost,rt);
}
}while(rtcp_next_packet(m));
}
void audio_stream_iterate(AudioStream *stream){
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment