diff options
author | Marcin Miklas <marcin.miklas@harman.com> | 2021-06-21 19:23:37 +0200 |
---|---|---|
committer | Marcin Miklas <marcin@miklas.pl> | 2021-06-21 19:26:19 +0200 |
commit | 97fcb5d1adbec79216c626b684c7bfeacd7db31d (patch) | |
tree | ba5ac5730c2c3706ab3a1d919224087fc482914d | |
parent | f837970b8b1a945b77cf7f7c203f4564a4051ed2 (diff) | |
download | Open-AVB-97fcb5d1adbec79216c626b684c7bfeacd7db31d.tar.gz |
Fixed drop_avtp_packets comparison.
-rw-r--r-- | lib/avtp_pipeline/avtp/openavb_avtp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/avtp_pipeline/avtp/openavb_avtp.c b/lib/avtp_pipeline/avtp/openavb_avtp.c index 299f2b0d..947dd9c0 100644 --- a/lib/avtp_pipeline/avtp/openavb_avtp.c +++ b/lib/avtp_pipeline/avtp/openavb_avtp.c @@ -385,7 +385,7 @@ openavbRC openavbAvtpTx(void *pv, bool bSend, bool txBlockingInIntf) // Increment the sequence number now that we are sure this is a good packet. pStream->avtp_sequence_num++; - if (pStream->drop_avtp_packets) { + if (pStream->drop_avtp_packets > 0) { pStream->drop_avtp_packets -= 1; } else { // Mark the frame "ready to send". |