[PATCH 5/5] wineqtdecoder/qtvdecoder: Don't drop the "csReceive" mutex while calling IMemInputPin::Receive().

Zebediah Figura z.figura12 at gmail.com
Mon Nov 25 19:24:34 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/wineqtdecoder/qtvdecoder.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/dlls/wineqtdecoder/qtvdecoder.c b/dlls/wineqtdecoder/qtvdecoder.c
index 379150d9a0..3da0738aec 100644
--- a/dlls/wineqtdecoder/qtvdecoder.c
+++ b/dlls/wineqtdecoder/qtvdecoder.c
@@ -235,9 +235,7 @@ static void trackingCallback(
         IMediaSample_SetTime(pOutSample, &tStart, &tStop);
     }
 
-    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