Skip to content

Commit 2828381

Browse files
aggresssSean-Der
authored andcommittedFeb 11, 2024
Fix interceptor.RTCPReaderFunc typo
1 parent 1a92109 commit 2828381

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎dtlstransport.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ func (t *DTLSTransport) streamsForSSRC(ssrc SSRC, streamInfo interceptor.StreamI
505505
return nil, nil, nil, nil, err
506506
}
507507

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

‎rtpsender.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ func (r *RTPSender) addEncoding(track TrackLocal) {
204204
}
205205
trackEncoding.srtpStream.rtpSender = r
206206
trackEncoding.rtcpInterceptor = r.api.interceptor.BindRTCPReader(
207-
interceptor.RTPReaderFunc(func(in []byte, a interceptor.Attributes) (n int, attributes interceptor.Attributes, err error) {
207+
interceptor.RTCPReaderFunc(func(in []byte, a interceptor.Attributes) (n int, attributes interceptor.Attributes, err error) {
208208
n, err = trackEncoding.srtpStream.Read(in)
209209
return n, a, err
210210
}),

0 commit comments

Comments
 (0)
Please sign in to comment.