This commit is contained in:
danm committed 2022-12-21 20:05:26 -07:00
1 parent 25ac41b06a
commit 56ac34d06a
1 file changed
+2 -2
+2 -2
View File
@@ -197,7 +197,7 @@ func (t *MediaTrack) AddReceiver(receiver *webrtc.RTPReceiver, track *webrtc.Tra
buff, rtcpReader := t.params.BufferFactory.GetBufferPair(uint32(track.SSRC()))
if buff == nil || rtcpReader == nil {
t.params.Logger.Errorw("could not retrieve buffer pair", nil)
prometheus.AddPublishedTrackFailure(t.ToProto().Type.String())
prometheus.AddPublishedTrackFailure(t.trackInfo.Type.String())
return newCodec
}
@@ -205,7 +205,7 @@ func (t *MediaTrack) AddReceiver(receiver *webrtc.RTPReceiver, track *webrtc.Tra
pkts, err := rtcp.Unmarshal(bytes)
if err != nil {
t.params.Logger.Errorw("could not unmarshal RTCP", err)
prometheus.AddPublishedTrackFailure(t.ToProto().Type.String())
prometheus.AddPublishedTrackFailure(t.trackInfo.Type.String())
return
}