Nikolay Sivov : mf: Add RegisterMFTs() implementation.
Alexandre Julliard
julliard at winehq.org
Mon Oct 7 17:02:16 CDT 2019
Module: wine
Branch: master
Commit: 88c8578459246caab6cd7d1f822837d08f07a41c
URL: https://source.winehq.org/git/wine.git/?a=commit;h=88c8578459246caab6cd7d1f822837d08f07a41c
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Mon Oct 7 15:57:00 2019 +0300
mf: Add RegisterMFTs() implementation.
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/mf/session.c | 16 ++++++++++++++--
1 file changed, 14 insertions(+), 2 deletions(-)
diff --git a/dlls/mf/session.c b/dlls/mf/session.c
index 5ed29c8525..7a49401d83 100644
--- a/dlls/mf/session.c
+++ b/dlls/mf/session.c
@@ -296,9 +296,21 @@ static ULONG WINAPI local_mft_registration_Release(IMFLocalMFTRegistration *ifac
static HRESULT WINAPI local_mft_registration_RegisterMFTs(IMFLocalMFTRegistration *iface, MFT_REGISTRATION_INFO *info,
DWORD count)
{
- FIXME("%p, %p, %u.\n", iface, info, count);
+ HRESULT hr = S_OK;
+ DWORD i;
- return E_NOTIMPL;
+ TRACE("%p, %p, %u.\n", iface, info, count);
+
+ for (i = 0; i < count; ++i)
+ {
+ if (FAILED(hr = MFTRegisterLocalByCLSID(&info[i].clsid, &info[i].guidCategory, info[i].pszName,
+ info[i].uiFlags, info[i].cInTypes, info[i].pInTypes, info[i].cOutTypes, info[i].pOutTypes)))
+ {
+ break;
+ }
+ }
+
+ return hr;
}
static const IMFLocalMFTRegistrationVtbl local_mft_registration_vtbl =
More information about the wine-cvs
mailing list