Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
mediastreamer2
Commits
ae04a161
Commit
ae04a161
authored
May 21, 2014
by
Gautier Pelloux-Prayer
Browse files
use MSList instead of fixed array and clean obsolete code
parent
65325093
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
258 additions
and
219 deletions
+258
-219
src/voip/qosanalyzer.c
src/voip/qosanalyzer.c
+248
-213
src/voip/qosanalyzer.h
src/voip/qosanalyzer.h
+10
-6
No files found.
src/voip/qosanalyzer.c
View file @
ae04a161
This diff is collapsed.
Click to expand it.
src/voip/qosanalyzer.h
View file @
ae04a161
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment