It is possible that pipe is closed before blank frame send, do not warn (#1807)
This commit is contained in:
@@ -1194,7 +1194,9 @@ func (d *DownTrack) writeBlankFrameRTP(duration float32, generation uint32) chan
|
|||||||
|
|
||||||
pktSize, err := writeBlankFrame(&hdr, frameEndNeeded)
|
pktSize, err := writeBlankFrame(&hdr, frameEndNeeded)
|
||||||
if err != nil {
|
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)
|
close(done)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user