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

Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2022-02-07 23:22:44 -06:00 committed by Alexandre Julliard
parent 38f125a5b5
commit 72ede0ec6b

View file

@ -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))