Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
BC
public
mediastreamer2
Commits
01ff9d7c
Commit
01ff9d7c
authored
Jun 02, 2014
by
Gautier Pelloux-Prayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove special case when only one RTCP report is available
parent
9eeb8b1c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
9 deletions
+1
-9
src/voip/qosanalyzer.c
src/voip/qosanalyzer.c
+1
-9
No files found.
src/voip/qosanalyzer.c
View file @
01ff9d7c
...
...
@@ -388,12 +388,6 @@ static float compute_available_bw(MSStatefulQosAnalyser *obj){
if
(
current
==
NULL
){
P
(
RED
"Not points available for computation.
\n
"
);
return
-
1
;
}
else
if
(
size
==
1
){
rtcpstatspoint_t
*
p
=
(
rtcpstatspoint_t
*
)
current
->
data
;
mean_bw
=
p
->
bandwidth
*
(
1
-
p
->
loss_percent
);
P
(
RED
"One single point available for computation. Estimated BW is %f kbit/s
\n
"
,
mean_bw
);
return
mean_bw
;
}
while
(
last
->
next
)
last
=
last
->
next
;
...
...
@@ -401,9 +395,7 @@ static float compute_available_bw(MSStatefulQosAnalyser *obj){
/*suppose that first point is a reliable estimation of the constant network loss rate*/
if
(
size
>
3
){
smooth_values
(
obj
);
/* constant_network_loss = ((rtcpstatspoint_t *)obj->rtcpstatspoint->next->data)->loss_percent;
}else{
*/
}
}
constant_network_loss
=
((
rtcpstatspoint_t
*
)
obj
->
rtcpstatspoint
->
data
)
->
loss_percent
;
...
...
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