From: Eric Pouech <epouech@codeweavers.com> Signed-off-by: Eric Pouech <epouech@codeweavers.com> --- dlls/mf/main.c | 11 +++++++++++ dlls/mf/mf.spec | 2 +- include/mfidl.idl | 1 + 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/dlls/mf/main.c b/dlls/mf/main.c index 537db3174cf..8a820f50610 100644 --- a/dlls/mf/main.c +++ b/dlls/mf/main.c @@ -772,6 +772,17 @@ HRESULT WINAPI MFEnumDeviceSources(IMFAttributes *attributes, IMFActivate ***sou return E_INVALIDARG; } +/*********************************************************************** + * MFCreateDeviceSource (mf.@) + */ +HRESULT WINAPI MFCreateDeviceSource(IMFAttributes *attributes, IMFMediaSource **source) +{ + FIXME("%p %p: stub!\n", attributes, source); + + if (!attributes || !source) return E_INVALIDARG; + return E_NOTIMPL; +} + struct simple_type_handler { IMFMediaTypeHandler IMFMediaTypeHandler_iface; diff --git a/dlls/mf/mf.spec b/dlls/mf/mf.spec index de607f1d322..2b5b088f2f5 100644 --- a/dlls/mf/mf.spec +++ b/dlls/mf/mf.spec @@ -30,7 +30,7 @@ @ stub MFCreateByteCacheFile @ stub MFCreateCacheManager @ stub MFCreateCredentialCache -@ stub MFCreateDeviceSource +@ stdcall MFCreateDeviceSource(ptr ptr) @ stub MFCreateDeviceSourceActivate @ stub MFCreateDrmNetNDSchemePlugin @ stub MFCreateFileBlockMap diff --git a/include/mfidl.idl b/include/mfidl.idl index e7258f26ed6..b95cd719b31 100644 --- a/include/mfidl.idl +++ b/include/mfidl.idl @@ -739,6 +739,7 @@ cpp_quote("HRESULT WINAPI MFCreateTrackedSample(IMFTrackedSample **sample);") cpp_quote("HRESULT WINAPI MFRequireProtectedEnvironment(IMFPresentationDescriptor *pd);") cpp_quote("HRESULT WINAPI MFTranscodeGetAudioOutputAvailableTypes(REFGUID subtype, DWORD flags,") cpp_quote(" IMFAttributes *config, IMFCollection **types);") +cpp_quote("HRESULT WINAPI MFCreateDeviceSource(IMFAttributes *, IMFMediaSource **);") typedef enum _MFMEDIASOURCE_CHARACTERISTICS { -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/10408