Commit 8323871f authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

mf: Added MFCreateTopology and stub IMFTopology implementation.

parent 9e3ebed4
......@@ -18237,7 +18237,8 @@ wine_fn_config_dll mcicda enable_mcicda
wine_fn_config_dll mciqtz32 enable_mciqtz32
wine_fn_config_dll mciseq enable_mciseq
wine_fn_config_dll mciwave enable_mciwave
wine_fn_config_dll mf enable_mf
wine_fn_config_dll mf enable_mf implib
wine_fn_config_test dlls/mf/tests mf_test
wine_fn_config_dll mf3216 enable_mf3216
wine_fn_config_dll mfplat enable_mfplat implib
wine_fn_config_test dlls/mfplat/tests mfplat_test
......
......@@ -3181,7 +3181,8 @@ WINE_CONFIG_DLL(mcicda)
WINE_CONFIG_DLL(mciqtz32)
WINE_CONFIG_DLL(mciseq)
WINE_CONFIG_DLL(mciwave)
WINE_CONFIG_DLL(mf)
WINE_CONFIG_DLL(mf,,[implib])
WINE_CONFIG_TEST(dlls/mf/tests)
WINE_CONFIG_DLL(mf3216)
WINE_CONFIG_DLL(mfplat,,[implib])
WINE_CONFIG_TEST(dlls/mfplat/tests)
......
MODULE = mf.dll
IMPORTLIB = mf
C_SRCS = \
main.c
main.c \
topology.c
......@@ -60,7 +60,7 @@
@ stdcall MFCreateSourceResolver(ptr) mfplat.MFCreateSourceResolver
@ stub MFCreateStandardQualityManager
@ stub MFCreateTopoLoader
@ stub MFCreateTopology
@ stdcall MFCreateTopology(ptr)
@ stub MFCreateTopologyNode
@ stub MFCreateTranscodeProfile
@ stub MFCreateTranscodeSinkActivate
......
TESTDLL = mf.dll
IMPORTS = mf
C_SRCS = \
mf.c
/*
* Unit tests for mf.dll.
*
* Copyright 2017 Nikolay Sivov
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include <stdarg.h>
#include <string.h>
#define COBJMACROS
#include "windef.h"
#include "winbase.h"
#include "mfidl.h"
#include "wine/test.h"
static void test_topology(void)
{
IMFTopology *topology;
HRESULT hr;
hr = MFCreateTopology(NULL);
ok(hr == E_POINTER, "got %#x\n", hr);
hr = MFCreateTopology(&topology);
ok(hr == S_OK, "got %#x\n", hr);
IMFTopology_Release(topology);
}
START_TEST(mf)
{
test_topology();
}
......@@ -164,3 +164,4 @@ interface IMFSourceResolver : IUnknown
}
cpp_quote("HRESULT WINAPI MFCreateSourceResolver(IMFSourceResolver **resolver);")
cpp_quote("HRESULT WINAPI MFCreateTopology(IMFTopology **topology);")
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment