1
Fork 0
mirror of https://github.com/jech/galene.git synced 2024-11-23 00:55:58 +01:00

Remove unused function getTimestamp.

This commit is contained in:
Juliusz Chroboczek 2020-09-12 14:47:09 +02:00
parent 6f120f0333
commit c9b61ab532
2 changed files with 0 additions and 16 deletions

View file

@ -29,8 +29,6 @@ type upTrack interface {
Codec() *webrtc.RTPCodec Codec() *webrtc.RTPCodec
// get a recent packet. Returns 0 if the packet is not in cache. // get a recent packet. Returns 0 if the packet is not in cache.
getRTP(seqno uint16, result []byte) uint16 getRTP(seqno uint16, result []byte) uint16
// returns the last timestamp, if possible
getTimestamp() (uint32, bool)
} }
type downConnection interface { type downConnection interface {

View file

@ -252,20 +252,6 @@ func (up *rtpUpTrack) getRTP(seqno uint16, result []byte) uint16 {
return up.cache.Get(seqno, result) 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 { func (up *rtpUpTrack) Label() string {
return up.label return up.label
} }