[PATCH 2/2] mf: Add MFEnumDeviceSources() stub.
Nikolay Sivov
nsivov at codeweavers.com
Tue Apr 30 06:26:28 CDT 2019
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
dlls/mf/main.c | 15 +++++++++++++++
dlls/mf/mf.spec | 2 +-
include/mfidl.idl | 1 +
3 files changed, 17 insertions(+), 1 deletion(-)
diff --git a/dlls/mf/main.c b/dlls/mf/main.c
index 1b00ea502e..8500cd9cef 100644
--- a/dlls/mf/main.c
+++ b/dlls/mf/main.c
@@ -328,3 +328,18 @@ HRESULT WINAPI MFShutdownObject(IUnknown *object)
return S_OK;
}
+
+/***********************************************************************
+ * MFEnumDeviceSources (mf.@)
+ */
+HRESULT WINAPI MFEnumDeviceSources(IMFAttributes *attributes, IMFActivate ***sources, UINT32 *count)
+{
+ FIXME("%p, %p, %p.\n", attributes, sources, count);
+
+ if (!attributes || !sources || !count)
+ return E_INVALIDARG;
+
+ *count = 0;
+
+ return S_OK;
+}
diff --git a/dlls/mf/mf.spec b/dlls/mf/mf.spec
index dd3d6d0688..9e3f6caef8 100644
--- a/dlls/mf/mf.spec
+++ b/dlls/mf/mf.spec
@@ -70,7 +70,7 @@
@ stub MFCreateVideoRendererActivate
@ stub MFCreateWMAEncoderActivate
@ stub MFCreateWMVEncoderActivate
-@ stub MFEnumDeviceSources
+@ stdcall MFEnumDeviceSources(ptr ptr ptr)
@ stub MFGetMultipleServiceProviders
@ stdcall MFGetService(ptr ptr ptr ptr)
@ stdcall MFGetSupportedMimeTypes(ptr)
diff --git a/include/mfidl.idl b/include/mfidl.idl
index 2bdb33938a..64d39db77e 100644
--- a/include/mfidl.idl
+++ b/include/mfidl.idl
@@ -480,6 +480,7 @@ cpp_quote("HRESULT WINAPI MFCreateSystemTimeSource(IMFPresentationTimeSource **t
cpp_quote("HRESULT WINAPI MFCreateTopology(IMFTopology **topology);")
cpp_quote("HRESULT WINAPI MFCreateTopologyNode(MF_TOPOLOGY_TYPE node_type, IMFTopologyNode **node);")
cpp_quote("HRESULT WINAPI MFCreateTopoLoader(IMFTopoLoader **loader);")
+cpp_quote("HRESULT WINAPI MFEnumDeviceSources(IMFAttributes *attributes, IMFActivate ***sources, UINT32 *count);")
cpp_quote("HRESULT WINAPI MFGetSupportedMimeTypes(PROPVARIANT *array);")
cpp_quote("HRESULT WINAPI MFGetService(IUnknown *object, REFGUID service, REFIID iid, void **obj);")
cpp_quote("MFTIME WINAPI MFGetSystemTime(void);")
--
2.20.1
More information about the wine-devel
mailing list