qcap/smartteefilter: 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:
parent
b31cca3438
commit
5aec70f6d0
|
@ -261,8 +261,8 @@ static HRESULT WINAPI SmartTeeFilterInput_Receive(struct strmbase_sink *base, IM
|
||||||
if (This->capture.pin.peer)
|
if (This->capture.pin.peer)
|
||||||
hrCapture = copy_sample(inputSample, This->capture.pAllocator, &captureSample);
|
hrCapture = copy_sample(inputSample, This->capture.pAllocator, &captureSample);
|
||||||
LeaveCriticalSection(&This->filter.csFilter);
|
LeaveCriticalSection(&This->filter.csFilter);
|
||||||
if (SUCCEEDED(hrCapture))
|
if (SUCCEEDED(hrCapture) && This->capture.pMemInputPin)
|
||||||
hrCapture = BaseOutputPinImpl_Deliver(&This->capture, captureSample);
|
hrCapture = IMemInputPin_Receive(This->capture.pMemInputPin, captureSample);
|
||||||
if (captureSample)
|
if (captureSample)
|
||||||
IMediaSample_Release(captureSample);
|
IMediaSample_Release(captureSample);
|
||||||
|
|
||||||
|
@ -273,8 +273,8 @@ static HRESULT WINAPI SmartTeeFilterInput_Receive(struct strmbase_sink *base, IM
|
||||||
/* No timestamps on preview stream: */
|
/* No timestamps on preview stream: */
|
||||||
if (SUCCEEDED(hrPreview))
|
if (SUCCEEDED(hrPreview))
|
||||||
hrPreview = IMediaSample_SetTime(previewSample, NULL, NULL);
|
hrPreview = IMediaSample_SetTime(previewSample, NULL, NULL);
|
||||||
if (SUCCEEDED(hrPreview))
|
if (SUCCEEDED(hrPreview) && This->preview.pMemInputPin)
|
||||||
hrPreview = BaseOutputPinImpl_Deliver(&This->preview, previewSample);
|
hrPreview = IMemInputPin_Receive(This->preview.pMemInputPin, previewSample);
|
||||||
if (previewSample)
|
if (previewSample)
|
||||||
IMediaSample_Release(previewSample);
|
IMediaSample_Release(previewSample);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue