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

use MSList instead of fixed array and clean obsolete code

parent 65325093
This diff is collapsed.
......@@ -30,7 +30,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
extern "C" {
#endif
#define STATS_HISTORY 3
static const float unacceptable_loss_rate=10;
static const int big_jitter=10; /*ms */
static const float significant_delay=0.2; /*seconds*/
......@@ -52,6 +51,13 @@ extern "C" {
bool_t pad[3];
}MSSimpleQosAnalyser;
typedef struct rtcpstatspoint{
uint64_t timestamp;
double bandwidth;
double loss_percent;
double rtt;
} rtcpstatspoint_t;
typedef struct _MSStatefulQosAnalyser{
MSQosAnalyser parent;
RtpSession *session;
......@@ -62,11 +68,9 @@ extern "C" {
bool_t pad[3];
MSQosAnalyserNetworkState network_state;
struct {
double bandwidth;
double loss_percent;
double rtt;
} points[150];
MSList *rtcpstatspoint;
rtcpstatspoint_t *latest;
double network_loss_rate;
double congestion_bandwidth;
uint64_t last_sent_count;
......
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