Commit 52f54746 authored by Simon Morlat's avatar Simon Morlat
Browse files

cleanup dead code

parent 8b6bc608
......@@ -286,55 +286,3 @@ void rtcp_APP_get_data(const mblk_t *m, uint8_t **data, int *len){
*data=NULL;
}
}
/*old functions: deprecated, but some useful code parts can be reused */
/* Start from now this source code file was written by Nicola Baldo as an extension of
the oRTP library. Copyright (C) 2005 Nicola Baldo nicola@baldo.biz*/
void report_block_parse(RtpSession *session, report_block_t *rb, struct timeval rcv_time_tv)
{
rb->ssrc = ntohl(rb->ssrc);
if ( rb->ssrc != session->snd.ssrc )
{
ortp_debug("Received rtcp report block related to unknown ssrc (not from us)... discarded");
return;
}
else
{
uint32_t rcv_time_msw;
uint32_t rcv_time_lsw;
uint32_t rcv_time;
double rtt;
rcv_time_msw = rcv_time_tv.tv_sec;
#if defined(_WIN32_WCE)
rcv_time_lsw = (uint32_t) ((double)rcv_time_tv.tv_usec*(double)(((uint64_t)1)<<32)*1.0e-6);
#else
rcv_time_lsw = (uint32_t) ((double)rcv_time_tv.tv_usec*(double)(1LL<<32)*1.0e-6);
#endif
rcv_time = (rcv_time_msw<<16) | (rcv_time_lsw >> 16);
/*
rb->cum_num_packet_lost = ntoh24(rb->cum_num_packet_lost);
rb->ext_high_seq_num_rec = ntohl(rb->ext_high_seq_num_rec);
rb->interarrival_jitter = ntohl(rb->interarrival_jitter);
rb->lsr = ntohl(rb->lsr);
rb->delay_snc_last_sr = ntohl(rb->delay_snc_last_sr);
*/
/* calculating Round Trip Time*/
if (rb->lsr != 0)
{
rtt = (double) (rcv_time - rb->delay_snc_last_sr - rb->lsr);
rtt = rtt/65536;
//printf("RTT = %f s\n",rtt);
}
}
}
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