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

[sampledevicemft] Unable to get MFSampleExtension_CaptureMetadata from pSample #1060

Open
whenshan opened this issue Dec 6, 2023 · 0 comments

Comments

@whenshan
Copy link

whenshan commented Dec 6, 2023

avstream/sampledevicemft

After we enabled Platform Dmft (as shown below), obtaining MFSampleExtension_CaptureMetadata in CMultipinMft::ProcessInput failed. And this problem will not appear on all computers, but some computers will always have this problem. How do we solve this problem?

[in INF file]
HKR,,EnablePlatformDmft,0x00010001,1

[In sampledevicemft]
In the following code pCaptureMetadata returns NULL.

STDMETHODIMP  CMultipinMft::ProcessInput(...)
{
....
  ComPtr<IMFAttributes> pCaptureMetadata = NULL;
  hr = pSample->GetUnknown(MFSampleExtension_CaptureMetadata, __uuidof(IMFAttributes), &pCaptureMetadata);
...
}

Thank you very much!

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

No branches or pull requests

1 participant