From 7d9ce823c3d668ca226df3ba9206aaadbf564a88 Mon Sep 17 00:00:00 2001 From: Aric Stewart Date: Mon, 23 Jan 2012 08:43:53 -0600 Subject: [PATCH] wineqtdecoder: Release the csReceive critical section before delivering a sample. --- dlls/wineqtdecoder/qtvdecoder.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/wineqtdecoder/qtvdecoder.c b/dlls/wineqtdecoder/qtvdecoder.c index 79e06a5cae3..8a41722df06 100644 --- a/dlls/wineqtdecoder/qtvdecoder.c +++ b/dlls/wineqtdecoder/qtvdecoder.c @@ -230,7 +230,9 @@ static void trackingCallback( IMediaSample_SetTime(pOutSample, &tStart, &tStop); } + LeaveCriticalSection(&This->tf.csReceive); hr = BaseOutputPinImpl_Deliver((BaseOutputPin*)This->tf.ppPins[1], pOutSample); + EnterCriticalSection(&This->tf.csReceive); if (hr != S_OK && hr != VFW_E_NOT_CONNECTED) ERR("Error sending sample (%x)\n", hr);