microsoft / microsoft/Windows-classic-samples

CaptureEngine video capture sample is not working as expected.

Open
#282 0 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.