qcap/vfwcapture: Call IMemInputPin::Receive() directly.

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2019-11-26 17:39:18 -06:00 committed by Alexandre Julliard
parent 5aec70f6d0
commit ce9af91cec
1 changed files with 2 additions and 2 deletions

View File

@ -433,7 +433,7 @@ static DWORD WINAPI ReadThread(LPVOID lParam)
}
Resize(capBox, pTarget, image_data);
hr = BaseOutputPinImpl_Deliver(capBox->pin, pSample);
hr = IMemInputPin_Receive(capBox->pin->pMemInputPin, pSample);
TRACE("%p -> Frame %u: %x\n", capBox, ++framecount, hr);
IMediaSample_Release(pSample);
}
@ -465,7 +465,7 @@ HRESULT qcap_driver_run(Capture *capBox, FILTER_STATE *state)
capBox->stopped = FALSE;
if (*state == State_Stopped)
if (*state == State_Stopped && capBox->pin->pin.peer)
{
*state = State_Running;
if (!capBox->iscommitted)