mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
track WriteSample fix log message.
This commit is contained in:
parent
05c4fa34c5
commit
919a554a9e
@ -50,8 +50,8 @@ func NewTrack(logger zerolog.Logger, codec codec.RTPCodec, connection *webrtc.Pe
|
|||||||
}
|
}
|
||||||
|
|
||||||
err := track.WriteSample(media.Sample(sample))
|
err := track.WriteSample(media.Sample(sample))
|
||||||
if err != nil && errors.Is(err, io.ErrClosedPipe) {
|
if err != nil && !errors.Is(err, io.ErrClosedPipe) {
|
||||||
logger.Warn().Err(err).Msg("pipeline failed to write")
|
logger.Warn().Err(err).Msg("failed to write sample to track")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user