Commit 4e610a07 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

amstream/tests: Use CoCreateInstance() directly instead of BaseOutputPinImpl_InitAllocator().

parent 72ede0ec
......@@ -1140,7 +1140,8 @@ static HRESULT WINAPI testsource_DecideAllocator(struct strmbase_source *iface,
* when it is able to do so it's behavior changes slightly
* (e.g. it uses dynamic format change instead of reconnecting in SetFormat).
* We don't yet implement the custom allocator so force the standard one for now. */
hr = BaseOutputPinImpl_InitAllocator(iface, alloc);
hr = CoCreateInstance(&CLSID_MemoryAllocator, NULL, CLSCTX_INPROC_SERVER,
&IID_IMemAllocator, (void **)alloc);
ok(hr == S_OK, "Got hr %#x.\n", hr);
IMemInputPin_GetAllocatorRequirements(pin, &props);
......
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