From e7d711dca53349edfd9068011a76af51a7da3b60 Mon Sep 17 00:00:00 2001 From: j-leungyy <43455129+j-leungyy@users.noreply.github.com> Date: Mon, 29 Mar 2021 12:44:59 -0700 Subject: User/jeleung/camera/fixdmft (#594) * add config for nudget * add IMFSampleAllocatorControl to QueryInterface --- avstream/sampledevicemft/multipinmft.cpp | 6 ++++++ avstream/sampledevicemft/packages.config | 4 ++++ 2 files changed, 10 insertions(+) create mode 100644 avstream/sampledevicemft/packages.config 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 @@ -135,6 +135,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(this); + } #endif else { 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 @@ + + + + \ No newline at end of file -- cgit v1.3.1