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:
parent
49cd3aef7b
commit
ea7825edfa
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue