quartz: Use IMemAllocator::GetBuffer() directly.
BaseOutputPinImpl_GetDeliveryBuffer() is doing nothing helpful here. Signed-off-by: Zebediah Figura <zfigura@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
50fc9d7ddc
commit
9d5d8df6f0
|
@ -140,8 +140,7 @@ static HRESULT WINAPI acm_wrapper_sink_Receive(struct strmbase_sink *iface, IMed
|
||||||
|
|
||||||
while(hr == S_OK && ash.cbSrcLength)
|
while(hr == S_OK && ash.cbSrcLength)
|
||||||
{
|
{
|
||||||
hr = BaseOutputPinImpl_GetDeliveryBuffer(&This->source, &pOutSample, NULL, NULL, 0);
|
if (FAILED(hr = IMemAllocator_GetBuffer(This->source.pAllocator, &pOutSample, NULL, NULL, 0)))
|
||||||
if (FAILED(hr))
|
|
||||||
{
|
{
|
||||||
ERR("Failed to get sample, hr %#lx.\n", hr);
|
ERR("Failed to get sample, hr %#lx.\n", hr);
|
||||||
return hr;
|
return hr;
|
||||||
|
|
|
@ -139,8 +139,8 @@ static HRESULT WINAPI avi_decompressor_sink_Receive(struct strmbase_sink *iface,
|
||||||
/* Update input size to match sample size */
|
/* Update input size to match sample size */
|
||||||
This->pBihIn->biSizeImage = cbSrcStream;
|
This->pBihIn->biSizeImage = cbSrcStream;
|
||||||
|
|
||||||
hr = BaseOutputPinImpl_GetDeliveryBuffer(&This->source, &pOutSample, NULL, NULL, 0);
|
if (FAILED(hr = IMemAllocator_GetBuffer(This->source.pAllocator, &pOutSample, NULL, NULL, 0)))
|
||||||
if (FAILED(hr)) {
|
{
|
||||||
ERR("Failed to get sample, hr %#lx.\n", hr);
|
ERR("Failed to get sample, hr %#lx.\n", hr);
|
||||||
return hr;
|
return hr;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue