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

Fix a race condition in SimulcastConsumer #825

Merged
merged 1 commit into from
May 25, 2022
Merged

Fix a race condition in SimulcastConsumer #825

merged 1 commit into from
May 25, 2022

Conversation

dsdolzhenko
Copy link
Contributor

@dsdolzhenko dsdolzhenko commented May 18, 2022

The race happens when SimulcastConsumer is about to switch spatial layers and receives a key-frame for a spatial layer it doesn't expect after setting flag syncRequired true.

It's a fix for #824

The race happens when `SimulcastConsumer` is about to switch spatial layers and receives a key-frame for a spatial layer it doesn't expect after setting flag `syncRequired` true.
@dsdolzhenko dsdolzhenko changed the title Fix a race condition in SimulcastConsumer #824 Fix a race condition in SimulcastConsumer May 18, 2022
Copy link
Member

@ibc ibc left a comment

Choose a reason for hiding this comment

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

Other than a question, looks good to me. @jmillan?

worker/src/RTC/SimulcastConsumer.cpp Show resolved Hide resolved
@ibc
Copy link
Member

ibc commented May 18, 2022

Can you please connect the associated issue you reported so it will be auto-closed once this PR is merged?

@dsdolzhenko
Copy link
Contributor Author

Can you please connect the associated issue you reported so it will be auto-closed once this PR is merged?

Done

@jmillan
Copy link
Member

jmillan commented May 19, 2022

Other than a question, looks good to me. @jmillan?

Looks good to mee too 👍.

Good catch @dsdolzhenko. I've made a little comment. Other than that 👍

@ibc ibc merged commit e2160d5 into versatica:v3 May 25, 2022
@dsdolzhenko dsdolzhenko deleted the dsdolzhenko/simulcast-consumer-race branch May 25, 2022 12:06
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.

None yet

3 participants