Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RtpRetransmissionBuffer: get rid of startSeq private member #1029

Merged
merged 3 commits into from
Mar 22, 2023

Conversation

ibc
Copy link
Member

@ibc ibc commented Mar 22, 2023

  • this->startSeq is just the seq of the first element in this->buffer, nothing else.
  • It doesn't make sense to have a separate member just for it.
  • We can just read sequenceNumber in the oldest item in the buffer.
  • The recent crash reported in SIGABRT after upgrading to 3.11.14 version #1027 was caused due to a non properly updated this->startSeq. So let's get rid of it completely.

- `this->startSeq` is just the seq of the first element in `this->buffer`, nothing else.
- It doesn't make sense to have a separate member just for it.
- We can just read `sequenceNumber` in the oldest item in the buffer.
- The recent crash reported in #1027 was caused due to a non properly updated `this->startSeq`. So let's get rid of it completely.
@ibc ibc requested review from jmillan and nazar-pc March 22, 2023 10:35
worker/src/RTC/RtpRetransmissionBuffer.cpp Outdated Show resolved Hide resolved
@ibc ibc merged commit 9ae5653 into v3 Mar 22, 2023
@ibc ibc deleted the retransmissionbuffer-get-rid-of-startseq branch March 22, 2023 12:26
Copy link
Member

@jmillan jmillan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants