Commit 3bf48966 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

mfplat: Add a stub implementation of DXGI surface buffer.

parent f920f633
......@@ -32,7 +32,7 @@
#include "rtworkq.h"
#include "ole2.h"
#include "propsys.h"
#include "dxgi.h"
#include "d3d11.h"
#include "uuids.h"
#include "wine/debug.h"
......
......@@ -46,6 +46,7 @@
@ stub MFCreateAudioMediaType
@ stdcall MFCreateCollection(ptr)
@ stdcall MFCreateDXGIDeviceManager(ptr ptr)
@ stdcall MFCreateDXGISurfaceBuffer(ptr ptr long long ptr)
@ stdcall MFCreateDXSurfaceBuffer(ptr ptr long ptr)
@ stdcall MFCreateEventQueue(ptr)
@ stdcall MFCreateFile(long long long wstr ptr)
......
......@@ -6206,7 +6206,7 @@ static void test_dxgi_surface_buffer(void)
if (!pMFCreateDXGISurfaceBuffer)
{
skip("MFCreateDXGISurfaceBuffer() is not available.\n");
win_skip("MFCreateDXGISurfaceBuffer() is not available.\n");
return;
}
......@@ -6248,9 +6248,15 @@ static void test_dxgi_surface_buffer(void)
ok(hr == S_OK, "Unexpected hr %#x.\n", hr);
ok(index == 0, "Unexpected subresource index.\n");
hr = IMFDXGIBuffer_SetUnknown(dxgi_buffer, &IID_IMFDXGIBuffer, NULL);
ok(hr == S_OK, "Unexpected hr %#x.\n", hr);
hr = IMFDXGIBuffer_SetUnknown(dxgi_buffer, &IID_IMFDXGIBuffer, (void *)device);
ok(hr == S_OK, "Unexpected hr %#x.\n", hr);
hr = IMFDXGIBuffer_SetUnknown(dxgi_buffer, &IID_IMFDXGIBuffer, (void *)device);
ok(hr == HRESULT_FROM_WIN32(ERROR_OBJECT_ALREADY_EXISTS), "Unexpected hr %#x.\n", hr);
hr = ID3D11Texture2D_GetPrivateData(texture, &IID_IMFDXGIBuffer, &size, &data);
ok(hr == DXGI_ERROR_NOT_FOUND, "Unexpected hr %#x.\n", hr);
......
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