Fix SRTP shutdown race

Add Stop() to RTCDtlsTransport and guard the shutdown of SRTP
This commit is contained in:
Sean DuBois
2019-01-31 01:19:26 -08:00
parent e88821b6b7
commit 88b495c7f5
5 changed files with 64 additions and 32 deletions

View File

@@ -12,7 +12,10 @@ import (
// RTCTrack represents a track that is communicated
type RTCTrack struct {
isRawRTP bool
isRawRTP bool
sampleInput chan media.RTCSample
rawInput chan *rtp.Packet
rtcpInput chan rtcp.Packet
ID string
PayloadType uint8