mirror of
https://github.com/jech/galene.git
synced 2024-11-10 02:35:58 +01:00
Remove unused function getTimestamp.
This commit is contained in:
parent
6f120f0333
commit
c9b61ab532
2 changed files with 0 additions and 16 deletions
2
conn.go
2
conn.go
|
@ -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 {
|
||||
|
|
14
rtpconn.go
14
rtpconn.go
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue