Nikolay Sivov : mf: Add MFEnumDeviceSources() stub.
Alexandre Julliard
julliard at winehq.org
Tue Apr 30 15:59:56 CDT 2019
Module: wine
Branch: master
Commit: 136312e2dcc5660693061c3b0654a5ccc2280e74
URL: https://source.winehq.org/git/wine.git/?a=commit;h=136312e2dcc5660693061c3b0654a5ccc2280e74
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Tue Apr 30 14:26:28 2019 +0300
mf: Add MFEnumDeviceSources() stub.
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
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 1b00ea5..8500cd9 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 dd3d6d0..9e3f6ca 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 2bdb339..64d39db 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);")
More information about the wine-cvs
mailing list