Commit 72ede0ec authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

qcap: Use CoCreateInstance() directly instead of BaseOutputPinImpl_InitAllocator().

parent 38f125a5
......@@ -1177,9 +1177,12 @@ static HRESULT WINAPI AviMuxOut_DecideAllocator(struct strmbase_source *base,
TRACE("(%p)->(%p %p)\n", base, pPin, pAlloc);
hr = BaseOutputPinImpl_InitAllocator(base, pAlloc);
if(FAILED(hr))
if (FAILED(hr = CoCreateInstance(&CLSID_MemoryAllocator, NULL,
CLSCTX_INPROC_SERVER, &IID_IMemAllocator, (void **)pAlloc)))
{
ERR("Failed to create allocator, hr %#x.\n", hr);
return hr;
}
hr = IMemInputPin_GetAllocatorRequirements(pPin, &req);
if(FAILED(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