[PATCH 2/5] quartz/avidec: Don't drop the "csReceive" mutex while calling IMemInputPin::Receive().
Zebediah Figura
z.figura12 at gmail.com
Mon Nov 25 19:24:31 CST 2019
There's no reason to do this, and there may never have been.
Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
---
dlls/quartz/avidec.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/dlls/quartz/avidec.c b/dlls/quartz/avidec.c
index 63c5aefcc5..cbe109df2b 100644
--- a/dlls/quartz/avidec.c
+++ b/dlls/quartz/avidec.c
@@ -183,9 +183,7 @@ static HRESULT WINAPI AVIDec_Receive(TransformFilter *tf, IMediaSample *pSample)
else
IMediaSample_SetMediaTime(pOutSample, NULL, NULL);
- LeaveCriticalSection(&This->tf.csReceive);
hr = IMemInputPin_Receive(This->tf.source.pMemInputPin, pOutSample);
- EnterCriticalSection(&This->tf.csReceive);
if (hr != S_OK && hr != VFW_E_NOT_CONNECTED)
ERR("Error sending sample (%x)\n", hr);
--
2.24.0
More information about the wine-devel
mailing list