Skip to content

Commit

Permalink
Add back frame sequence rollover fix
Browse files Browse the repository at this point in the history
In the clean up effort this was removed but needs to be added back
  • Loading branch information
joeygrover committed Mar 24, 2021
1 parent fa9301e commit 385f314
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -646,6 +646,13 @@ public void sendMessage(ProtocolMessage protocolMsg) {
for (int i = 0; i < frameCount; i++) {

frameSequenceNumber++;

if (frameSequenceNumber == SdlPacket.FRAME_INFO_FINAL_CONNESCUTIVE_FRAME) {
//If sequence numbers roll over to 0, increment again to avoid
//using the reserved sequence value for the final frame
++frameSequenceNumber;
}

if (i == frameCount - 1) {
frameSequenceNumber = SdlPacket.FRAME_INFO_FINAL_CONNESCUTIVE_FRAME;
}
Expand Down

0 comments on commit 385f314

Please sign in to comment.