It is possible that pipe is closed before blank frame send, do not warn (#1807)

This commit is contained in:
Raja Subramanian
2023-06-20 11:58:01 +05:30
committed by GitHub
parent f11a7a229f
commit 27051e9999
+3 -1
View File
@@ -1194,7 +1194,9 @@ func (d *DownTrack) writeBlankFrameRTP(duration float32, generation uint32) chan
pktSize, err := writeBlankFrame(&hdr, frameEndNeeded)
if err != nil {
d.logger.Warnw("could not write blank frame", err)
if err != io.ErrClosedPipe {
d.logger.Warnw("could not write blank frame", err)
}
close(done)
return
}