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
13994a64
Commit
13994a64
authored
Jun 03, 2014
by
Gautier Pelloux-Prayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove always true condition block
parent
01ff9d7c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/voip/qosanalyzer.c
src/voip/qosanalyzer.c
+3
-3
No files found.
src/voip/qosanalyzer.c
View file @
13994a64
...
...
@@ -406,7 +406,7 @@ static float compute_available_bw(MSStatefulQosAnalyser *obj){
ms_list_position
(
obj
->
rtcpstatspoint
,
it
),
point
->
bandwidth
,
point
->
loss_percent
);
}
while
(
current
==
obj
->
rtcpstatspoint
||
(
current
!=
NULL
&&
((
rtcpstatspoint_t
*
)
current
->
data
)
->
loss_percent
<
0
.
03
+
constant_network_loss
)
)
{
while
(
current
!=
NULL
&&
((
rtcpstatspoint_t
*
)
current
->
data
)
->
loss_percent
<
0
.
03
+
constant_network_loss
){
P
(
"
\t
%d is stable
\n
"
,
ms_list_position
(
obj
->
rtcpstatspoint
,
current
));
for
(
it
=
last
;
it
!=
current
;
it
=
it
->
prev
){
...
...
@@ -478,10 +478,10 @@ static void stateful_analyser_suggest_action(MSQosAnalyser *objbase, MSRateContr
action
->
value
=
0
;
}
else
if
(
bw
>
curbw
){
action
->
type
=
MSRateControlActionIncreaseQuality
;
action
->
value
=
MAX
(
0
,
100
.
*
(
bw
-
curbw
)
/
curbw
);
action
->
value
=
MAX
(
0
,
100
.
*
(
bw
/
curbw
-
1
)
);
}
else
{
action
->
type
=
MSRateControlActionDecreaseBitrate
;
action
->
value
=
MAX
(
10
,
(
100
.
-
bw
*
100
.
/
curbw
));
action
->
value
=
MAX
(
10
,
-
100
.
*
(
bw
/
curbw
-
1
));
}
P
(
YELLOW
"%s of value %d
\n
"
,
ms_rate_control_action_type_name
(
action
->
type
),
action
->
value
);
...
...
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