mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-02 14:24:07 +00:00
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:
parent
38f125a5b5
commit
72ede0ec6b
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue