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 race issue among decoding threads which causes broken frame. #3735

Merged
merged 1 commit into from
Apr 18, 2024

Conversation

tyan0
Copy link
Contributor

@tyan0 tyan0 commented Mar 24, 2024

Sometimes, the decoded frame output data will be broken due to the race issue among decoding threads. This patch trims event timings for multi-thread cooperation.

Releasing reordering buffer is single thread while writing to the reordering buffer is multi-thread. Therefore, RESET_EVENT() should not be called in writer side. Moreover, WelsDecodeBs() tries to acquire the empty buffer, so it should wait for m_sReleaseBufferEvent event.

Trim event timings for multi-thread cooperation.
@BenzhengZhang BenzhengZhang merged commit 1c23887 into cisco:master Apr 18, 2024
8 checks passed
Copy link

@hossain666 hossain666 left a comment

Choose a reason for hiding this comment

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

master

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

Successfully merging this pull request may close these issues.

3 participants