microsoft / microsoft/Windows-classic-samples
CaptureEngine video capture sample is not working as expected.
Nobody has claimed this yet.
- Dominant language
- No language data
- Stars
- 5.7k
- Forks
- 3.3k
- PR merge metrics
- No merged PRs in 30d
Description
An error is thrown when switching to another capture device, just after calling CaptureEngine::StartPreview() that results with S_OK, but IMFMediaEvent::GetStatus() throws 0x80070005. Restarting the application and then select the second device does what is expected. But switching to the first device raises the same issue..
When I trace the code in the debugger, the debugger says:
avcore\mf\mfmediaengine\svr\presentationhandlerexceptionwrapper.cpp(64)\mfsvr.dll!5DF7D8CE: (caller: 5DF1B9FF) ReturnHr(1) tid(6768) 80070005 Access Denied.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the device switch after CaptureEngine::StartPreview() returns S_OK, then inspect IMFMediaEvent::GetStatus() and the reported 0x80070005 failure. The issue does not name a sample file or test; done means switching between capture devices works without the access-denied error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- audio-video-rtc, desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100