Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
galene
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
galene
Commits
fb17778b
Commit
fb17778b
authored
Jan 21, 2021
by
Juliusz Chroboczek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Increase receiver report timeout.
parent
f0dcd0b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
rtpconn/rtpconn.go
rtpconn/rtpconn.go
+2
-2
No files found.
rtpconn/rtpconn.go
View file @
fb17778b
...
@@ -53,6 +53,8 @@ func (s *receiverStats) Set(loss uint8, jitter uint32, now uint64) {
...
@@ -53,6 +53,8 @@ func (s *receiverStats) Set(loss uint8, jitter uint32, now uint64) {
atomic
.
StoreUint64
(
&
s
.
jiffies
,
now
)
atomic
.
StoreUint64
(
&
s
.
jiffies
,
now
)
}
}
const
receiverReportTimeout
=
30
*
rtptime
.
JiffiesPerSec
func
(
s
*
receiverStats
)
Get
(
now
uint64
)
(
uint8
,
uint32
)
{
func
(
s
*
receiverStats
)
Get
(
now
uint64
)
(
uint8
,
uint32
)
{
ts
:=
atomic
.
LoadUint64
(
&
s
.
jiffies
)
ts
:=
atomic
.
LoadUint64
(
&
s
.
jiffies
)
if
now
<
ts
||
now
>
ts
+
receiverReportTimeout
{
if
now
<
ts
||
now
>
ts
+
receiverReportTimeout
{
...
@@ -61,8 +63,6 @@ func (s *receiverStats) Get(now uint64) (uint8, uint32) {
...
@@ -61,8 +63,6 @@ func (s *receiverStats) Get(now uint64) (uint8, uint32) {
return
uint8
(
atomic
.
LoadUint32
(
&
s
.
loss
)),
atomic
.
LoadUint32
(
&
s
.
jitter
)
return
uint8
(
atomic
.
LoadUint32
(
&
s
.
loss
)),
atomic
.
LoadUint32
(
&
s
.
jitter
)
}
}
const
receiverReportTimeout
=
8
*
rtptime
.
JiffiesPerSec
type
iceConnection
interface
{
type
iceConnection
interface
{
addICECandidate
(
candidate
*
webrtc
.
ICECandidateInit
)
error
addICECandidate
(
candidate
*
webrtc
.
ICECandidateInit
)
error
flushICECandidates
()
error
flushICECandidates
()
error
...
...
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