-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
race when simulcast #1803
Comments
@Sean-Der Looking for your opinion to fix this problem, I could help to submit a PR with e2e test during holidays. It seems the simplest way to avoid race is adding a mutex in RTPReceiver and locking when |
There already is a mutex, and it's taken in Not sure if it's correct to take the mutex in |
Oh, I didn't notice that there is already a mutex, thanks. Hmm, it seems not reasonable to lock when Read(Simulcast). I think the best solution I could image is applying the copy-on-write pattern here:
However,
|
Your environment.
What did you do?
onTrack
eventsWhat did you expect?
What happened?
the stack trace when race detected
The text was updated successfully, but these errors were encountered: