-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
[avstream/sampledevicemft] Fix possible deadlock while changes output stream state #935
base: main
Are you sure you want to change the base?
Conversation
@jammgit please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.
Contributor License AgreementContribution License AgreementThis Contribution License Agreement (“Agreement”) is agreed to by the party signing below (“You”),
|
@microsoft-github-policy-service agree |
prerequisites:
There are multiple output streams.
BUG:
In the CMultipinMft::ProcessOutput function, when the first stream object is obtained and executed to spOpin->ProcessOutput, SetOutputStreamState may be executed at the same time to change the stream state. The latter acquires the lock and begins to wait for the Input stream state change. At this point, the CMultipinMft::ProcessOutput function starts to process the second stream, and cannot acquire the lock. Finally, the DTM deadlock...