summaryrefslogtreecommitdiff
path: root/avstream/sampledevicemft/multipinmft.cpp
diff options
context:
space:
mode:
authorj-leungyy <[email protected]>2021-03-29 12:44:59 -0700
committerGitHub <[email protected]>2021-03-29 12:44:59 -0700
commite7d711dca53349edfd9068011a76af51a7da3b60 (patch)
tree9644e2eddbb5271e9c7f662a445d0d0d0465d418 /avstream/sampledevicemft/multipinmft.cpp
parent24e0600eb31b9309ab2d6b69573c0c91343a1ad0 (diff)
User/jeleung/camera/fixdmft (#594)
* add config for nudget * add IMFSampleAllocatorControl to QueryInterface
Diffstat (limited to 'avstream/sampledevicemft/multipinmft.cpp')
-rw-r--r--avstream/sampledevicemft/multipinmft.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/avstream/sampledevicemft/multipinmft.cpp b/avstream/sampledevicemft/multipinmft.cpp
index f4fe3d27..30c0463f 100644
--- a/avstream/sampledevicemft/multipinmft.cpp
+++ b/avstream/sampledevicemft/multipinmft.cpp
@@ -136,6 +136,12 @@ STDMETHODIMP CMultipinMft::QueryInterface(
*ppv = static_cast< IMFGetService* >(this);
}
#endif
+#if ((defined NTDDI_WIN10_VB) && (NTDDI_VERSION >= NTDDI_WIN10_VB))
+ else if (iid == __uuidof(IMFSampleAllocatorControl))
+ {
+ *ppv = static_cast<IMFSampleAllocatorControl*>(this);
+ }
+#endif
else
{
hr = E_NOINTERFACE;