34 ok(
hr==
S_OK,
"Unable to create memory allocator %x\n",
hr);
48 hr = IMemAllocator_SetProperties(pMemAllocator, &RequestedProps, &ActualProps);
49 ok(
hr==
S_OK,
"SetProperties returned: %x\n",
hr);
51 hr = IMemAllocator_Commit(pMemAllocator);
53 hr = IMemAllocator_Commit(pMemAllocator);
56 hr = IMemAllocator_GetBuffer(pMemAllocator, &sample,
NULL,
NULL, 0);
57 ok(
hr==
S_OK,
"Could not get a buffer: %x\n",
hr);
59 hr = IMemAllocator_Decommit(pMemAllocator);
61 hr = IMemAllocator_Decommit(pMemAllocator);
67 hr = IMemAllocator_Commit(pMemAllocator);
70 hr = IMemAllocator_GetBuffer(pMemAllocator, &sample2,
NULL,
NULL, 0);
71 ok(
hr==
S_OK,
"Could not get a buffer: %x\n",
hr);
72 IMediaSample_Release(sample);
74 IMediaSample_Release(sample2);
76 hr = IMemAllocator_Decommit(pMemAllocator);
79 IMemAllocator_Release(pMemAllocator);
HRESULT WINAPI DECLSPEC_HOTPATCH CoCreateInstance(REFCLSID rclsid, LPUNKNOWN pUnkOuter, DWORD dwClsContext, REFIID iid, LPVOID *ppv)
HRESULT WINAPI CoInitialize(LPVOID lpReserved)
void WINAPI DECLSPEC_HOTPATCH CoUninitialize(void)
static void CommitDecommitTest(void)