Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sfu
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
Alain Takoudjou
sfu
Commits
c9b61ab5
Commit
c9b61ab5
authored
Sep 12, 2020
by
Juliusz Chroboczek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused function getTimestamp.
parent
6f120f03
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
16 deletions
+0
-16
conn.go
conn.go
+0
-2
rtpconn.go
rtpconn.go
+0
-14
No files found.
conn.go
View file @
c9b61ab5
...
...
@@ -29,8 +29,6 @@ type upTrack interface {
Codec
()
*
webrtc
.
RTPCodec
// get a recent packet. Returns 0 if the packet is not in cache.
getRTP
(
seqno
uint16
,
result
[]
byte
)
uint16
// returns the last timestamp, if possible
getTimestamp
()
(
uint32
,
bool
)
}
type
downConnection
interface
{
...
...
rtpconn.go
View file @
c9b61ab5
...
...
@@ -252,20 +252,6 @@ func (up *rtpUpTrack) getRTP(seqno uint16, result []byte) uint16 {
return
up
.
cache
.
Get
(
seqno
,
result
)
}
func
(
up
*
rtpUpTrack
)
getTimestamp
()
(
uint32
,
bool
)
{
buf
:=
make
([]
byte
,
packetcache
.
BufSize
)
l
:=
up
.
cache
.
GetLast
(
buf
)
if
l
==
0
{
return
0
,
false
}
var
packet
rtp
.
Packet
err
:=
packet
.
Unmarshal
(
buf
)
if
err
!=
nil
{
return
0
,
false
}
return
packet
.
Timestamp
,
true
}
func
(
up
*
rtpUpTrack
)
Label
()
string
{
return
up
.
label
}
...
...
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