Zebediah Figura : wineqtdecoder/qtvdecoder: Don't drop the "csReceive" mutex while calling IMemInputPin::Receive().

Alexandre Julliard julliard at winehq.org
Tue Nov 26 16:21:25 CST 2019


Module: wine
Branch: master
Commit: d45456cecba12fd9c468bf0e60934ca2cbd6e688
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=d45456cecba12fd9c468bf0e60934ca2cbd6e688

Author: Zebediah Figura <z.figura12 at gmail.com>
Date:   Mon Nov 25 19:24:34 2019 -0600

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

There's no reason to do this, and there may never have been.

Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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);
 




More information about the wine-cvs mailing list