Skip to content

Commit

Permalink
qcap: Use CoCreateInstance() directly instead of BaseOutputPinImpl_In…
Browse files Browse the repository at this point in the history
…itAllocator().

Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
  • Loading branch information
Zebediah Figura authored and julliard committed Feb 8, 2022
1 parent 38f125a commit 72ede0e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions dlls/qcap/avimux.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 72ede0e

Please sign in to comment.