Skip to content

Commit dbf2254

Browse files
aggresssSean-Der
authored andcommitted
Fix interceptor.RTCPReaderFunc typo
1 parent fc6f9a2 commit dbf2254

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dtlstransport.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ func (t *DTLSTransport) streamsForSSRC(ssrc SSRC, streamInfo interceptor.StreamI
508508
return nil, nil, nil, nil, err
509509
}
510510

511-
rtcpInterceptor := t.api.interceptor.BindRTCPReader(interceptor.RTPReaderFunc(func(in []byte, a interceptor.Attributes) (n int, attributes interceptor.Attributes, err error) {
511+
rtcpInterceptor := t.api.interceptor.BindRTCPReader(interceptor.RTCPReaderFunc(func(in []byte, a interceptor.Attributes) (n int, attributes interceptor.Attributes, err error) {
512512
n, err = rtcpReadStream.Read(in)
513513
return n, a, err
514514
}))

rtpsender.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ func (r *RTPSender) Send(parameters RTPSendParameters) error {
325325
)
326326

327327
trackEncoding.rtcpInterceptor = r.api.interceptor.BindRTCPReader(
328-
interceptor.RTPReaderFunc(func(in []byte, a interceptor.Attributes) (n int, attributes interceptor.Attributes, err error) {
328+
interceptor.RTCPReaderFunc(func(in []byte, a interceptor.Attributes) (n int, attributes interceptor.Attributes, err error) {
329329
n, err = trackEncoding.srtpStream.Read(in)
330330
return n, a, err
331331
}),

0 commit comments

Comments
 (0)