wineqtdecoder: Use thread-safe initialization.

Since commit 46d5973961 QuickTime can be
called from background threads, so use the thread-safe initialization /
destruction routines.

Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Huw Davies 2016-03-31 13:16:04 +01:00 committed by Alexandre Julliard
parent 49cd3aef7b
commit ea7825edfa
1 changed files with 2 additions and 2 deletions

View File

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