1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

RTC: Ignore NACK when disable for player.

This commit is contained in:
winlin 2021-02-28 07:09:27 +08:00
parent 0aeaf442f7
commit 74f63d6b14

View file

@ -1962,7 +1962,7 @@ srs_error_t SrsRtcVideoRecvTrack::on_rtp(SrsRtcStream* source, SrsRtpPacket2* pk
}
// For NACK to handle packet.
if ((err = on_nack(pkt)) != srs_success) {
if (nack_enabled_ && (err = on_nack(pkt)) != srs_success) {
return srs_error_wrap(err, "on nack");
}