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
680421e3
Commit
680421e3
authored
Feb 24, 2015
by
johan
Browse files
Fix RFC3389 Comfort noise packet timestamps
parent
574ecf89
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/otherfilters/msrtp.c
src/otherfilters/msrtp.c
+3
-3
No files found.
src/otherfilters/msrtp.c
View file @
680421e3
...
...
@@ -358,7 +358,7 @@ static void check_stun_sending(MSFilter *f) {
}
}
static
void
process_cn
(
MSFilter
*
f
,
SenderData
*
d
){
static
void
process_cn
(
MSFilter
*
f
,
SenderData
*
d
,
uint32_t
timestamp
){
if
(
d
->
cng_data
.
datasize
>
0
){
rtp_header_t
*
rtp
;
/* get CN payload type number */
...
...
@@ -370,7 +370,7 @@ static void process_cn(MSFilter *f, SenderData *d){
rtp
=
(
rtp_header_t
*
)
m
->
b_rptr
;
rtp
->
paytype
=
cn_pt
;
rtp_session_sendm_with_ts
(
d
->
session
,
m
,
d
->
last_ts
);
rtp_session_sendm_with_ts
(
d
->
session
,
m
,
timestamp
);
d
->
cng_data
.
datasize
=
0
;
}
}
...
...
@@ -418,7 +418,7 @@ static void _sender_process(MSFilter * f)
rtp_session_sendm_with_ts
(
s
,
header
,
timestamp
);
}
else
if
(
d
->
mute
==
TRUE
&&
d
->
skip
==
FALSE
)
{
freemsg
(
im
);
process_cn
(
f
,
d
);
process_cn
(
f
,
d
,
timestamp
);
//Send STUN packet as RTP keep alive
check_stun_sending
(
f
);
...
...
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