Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mediastreamer2
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
External Wiki
External Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
BC
public
mediastreamer2
Commits
b9c2c25d
Commit
b9c2c25d
authored
Sep 15, 2014
by
Gautier Pelloux-Prayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove debug log and fix timout for tests without adaptive algorithm enabled
parent
9ad20676
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
mediastreamer2_adaptive_tester.c
tester/mediastreamer2_adaptive_tester.c
+3
-3
No files found.
tester/mediastreamer2_adaptive_tester.c
View file @
b9c2c25d
...
...
@@ -176,7 +176,7 @@ static void video_manager_start( stream_manager_t * mgr
static
void
qos_analyzer_on_action_suggested
(
void
*
user_data
,
int
datac
,
const
char
**
datav
){
stream_manager_t
*
mgr
=
(
stream_manager_t
*
)
user_data
;
mgr
->
rtcp_count
++
;
ms_error
(
"MSStatefulQosAnalyzer bw_per_seqnum one more %d"
,
mgr
->
rtcp_count
);
if
(
mgr
->
type
==
MSVideo
&&
mgr
->
video_stream
->
ms
.
rc_enable
){
const
MSQosAnalyzer
*
analyzer
=
ms_bitrate_controller_get_qos_analyzer
(
mgr
->
video_stream
->
ms
.
rc
);
if
(
analyzer
->
type
==
MSQosAnalyzerAlgorithmStateful
){
...
...
@@ -284,7 +284,7 @@ static void packet_duplication() {
dup_ratio
=
0
;
start_adaptive_stream
(
MSAudio
,
&
marielle
,
&
margaux
,
SPEEX16_PAYLOAD_TYPE
,
32000
,
0
,
0
,
50
,
dup_ratio
);
media_stream_enable_adaptive_bitrate_control
(
&
marielle
->
audio_stream
->
ms
,
FALSE
);
iterate_adaptive_stream
(
marielle
,
margaux
,
10000
0
,
&
marielle
->
rtcp_count
,
2
);
iterate_adaptive_stream
(
marielle
,
margaux
,
10000
,
NULL
,
0
);
stats
=
rtp_session_get_stats
(
margaux
->
video_stream
->
ms
.
sessions
.
rtp_session
);
CU_ASSERT_EQUAL
(
stats
->
packet_dup_recv
,
dup_ratio
?
stats
->
packet_recv
/
(
dup_ratio
+
1
)
:
0
);
/*in theory, cumulative loss should be the invert of duplicated count, but
...
...
@@ -296,7 +296,7 @@ static void packet_duplication() {
dup_ratio
=
1
;
start_adaptive_stream
(
MSAudio
,
&
marielle
,
&
margaux
,
SPEEX16_PAYLOAD_TYPE
,
32000
,
0
,
0
,
50
,
dup_ratio
);
media_stream_enable_adaptive_bitrate_control
(
&
marielle
->
audio_stream
->
ms
,
FALSE
);
iterate_adaptive_stream
(
marielle
,
margaux
,
10000
0
,
&
marielle
->
rtcp_count
,
2
);
iterate_adaptive_stream
(
marielle
,
margaux
,
10000
,
NULL
,
0
);
stats
=
rtp_session_get_stats
(
margaux
->
video_stream
->
ms
.
sessions
.
rtp_session
);
CU_ASSERT_EQUAL
(
stats
->
packet_dup_recv
,
dup_ratio
?
stats
->
packet_recv
/
(
dup_ratio
+
1
)
:
0
);
CU_ASSERT_TRUE
(
stats
->
cum_packet_loss
<=
-
.
5
*
stats
->
packet_dup_recv
);
...
...
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