wineqtdecoder: Use thread-safe initialization.
Huw Davies
huw at codeweavers.com
Thu Mar 31 07:16:04 CDT 2016
Since commit 46d5973961fe2266074ac2855368c3fcf987c1b5 QuickTime
can be called from background threads, so use the thread-safe
initialization / destruction routines.
Signed-off-by: Huw Davies <huw at codeweavers.com>
---
dlls/wineqtdecoder/qtsplitter.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/wineqtdecoder/qtsplitter.c b/dlls/wineqtdecoder/qtsplitter.c
index 2aafdb4..4e12242 100644
--- a/dlls/wineqtdecoder/qtsplitter.c
+++ b/dlls/wineqtdecoder/qtsplitter.c
@@ -250,7 +250,7 @@ IUnknown * CALLBACK QTSplitter_create(IUnknown *punkout, HRESULT *phr)
QTSplitter *This;
static const WCHAR wcsInputPinName[] = {'I','n','p','u','t',' ','P','i','n',0};
- EnterMovies();
+ EnterMoviesOnThread(0);
RegisterWineDataHandler();
@@ -324,7 +324,7 @@ static void QT_Destroy(QTSplitter *This)
if (This->aSession)
MovieAudioExtractionEnd(This->aSession);
- ExitMovies();
+ ExitMoviesOnThread();
LeaveCriticalSection(&This->csReceive);
if (This->loaderThread)
--
1.9.1
More information about the wine-patches
mailing list