[PATCH 2/5] qcap/smartteefilter: Call IMemInputPin::Receive() directly.
Zebediah Figura
z.figura12 at gmail.com
Tue Nov 26 17:39:17 CST 2019
Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
---
dlls/qcap/smartteefilter.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/dlls/qcap/smartteefilter.c b/dlls/qcap/smartteefilter.c
index fd0dd621e3..f63a43de50 100644
--- a/dlls/qcap/smartteefilter.c
+++ b/dlls/qcap/smartteefilter.c
@@ -261,8 +261,8 @@ static HRESULT WINAPI SmartTeeFilterInput_Receive(struct strmbase_sink *base, IM
if (This->capture.pin.peer)
hrCapture = copy_sample(inputSample, This->capture.pAllocator, &captureSample);
LeaveCriticalSection(&This->filter.csFilter);
- if (SUCCEEDED(hrCapture))
- hrCapture = BaseOutputPinImpl_Deliver(&This->capture, captureSample);
+ if (SUCCEEDED(hrCapture) && This->capture.pMemInputPin)
+ hrCapture = IMemInputPin_Receive(This->capture.pMemInputPin, captureSample);
if (captureSample)
IMediaSample_Release(captureSample);
@@ -273,8 +273,8 @@ static HRESULT WINAPI SmartTeeFilterInput_Receive(struct strmbase_sink *base, IM
/* No timestamps on preview stream: */
if (SUCCEEDED(hrPreview))
hrPreview = IMediaSample_SetTime(previewSample, NULL, NULL);
- if (SUCCEEDED(hrPreview))
- hrPreview = BaseOutputPinImpl_Deliver(&This->preview, previewSample);
+ if (SUCCEEDED(hrPreview) && This->preview.pMemInputPin)
+ hrPreview = IMemInputPin_Receive(This->preview.pMemInputPin, previewSample);
if (previewSample)
IMediaSample_Release(previewSample);
--
2.24.0
More information about the wine-devel
mailing list