mirror of
https://github.com/pion/webrtc.git
synced 2025-09-27 03:25:58 +08:00
Fix interceptor.RTCPReaderFunc typo
This commit is contained in:
@@ -505,7 +505,7 @@ func (t *DTLSTransport) streamsForSSRC(ssrc SSRC, streamInfo interceptor.StreamI
|
|||||||
return nil, nil, nil, nil, err
|
return nil, nil, nil, nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
rtcpInterceptor := t.api.interceptor.BindRTCPReader(interceptor.RTPReaderFunc(func(in []byte, a interceptor.Attributes) (n int, attributes interceptor.Attributes, err error) {
|
rtcpInterceptor := t.api.interceptor.BindRTCPReader(interceptor.RTCPReaderFunc(func(in []byte, a interceptor.Attributes) (n int, attributes interceptor.Attributes, err error) {
|
||||||
n, err = rtcpReadStream.Read(in)
|
n, err = rtcpReadStream.Read(in)
|
||||||
return n, a, err
|
return n, a, err
|
||||||
}))
|
}))
|
||||||
|
@@ -204,7 +204,7 @@ func (r *RTPSender) addEncoding(track TrackLocal) {
|
|||||||
}
|
}
|
||||||
trackEncoding.srtpStream.rtpSender = r
|
trackEncoding.srtpStream.rtpSender = r
|
||||||
trackEncoding.rtcpInterceptor = r.api.interceptor.BindRTCPReader(
|
trackEncoding.rtcpInterceptor = r.api.interceptor.BindRTCPReader(
|
||||||
interceptor.RTPReaderFunc(func(in []byte, a interceptor.Attributes) (n int, attributes interceptor.Attributes, err error) {
|
interceptor.RTCPReaderFunc(func(in []byte, a interceptor.Attributes) (n int, attributes interceptor.Attributes, err error) {
|
||||||
n, err = trackEncoding.srtpStream.Read(in)
|
n, err = trackEncoding.srtpStream.Read(in)
|
||||||
return n, a, err
|
return n, a, err
|
||||||
}),
|
}),
|
||||||
|
Reference in New Issue
Block a user