summaryrefslogtreecommitdiff
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
parent24e0600eb31b9309ab2d6b69573c0c91343a1ad0 (diff)
User/jeleung/camera/fixdmft (#594)
* add config for nudget * add IMFSampleAllocatorControl to QueryInterface
-rw-r--r--avstream/sampledevicemft/multipinmft.cpp6
-rw-r--r--avstream/sampledevicemft/packages.config4
2 files changed, 10 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;
diff --git a/avstream/sampledevicemft/packages.config b/avstream/sampledevicemft/packages.config
new file mode 100644
index 00000000..26065b14
--- /dev/null
+++ b/avstream/sampledevicemft/packages.config
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="utf-8"?>
+<packages>
+ <package id="Microsoft.Windows.ImplementationLibrary" version="1.0.210204.1" targetFramework="native" />
+</packages> \ No newline at end of file