Commit ea7825ed authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

wineqtdecoder: Use thread-safe initialization.

Since commit 46d59739 QuickTime can be called from background threads, so use the thread-safe initialization / destruction routines. Signed-off-by: 's avatarHuw Davies <huw@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 49cd3aef
...@@ -250,7 +250,7 @@ IUnknown * CALLBACK QTSplitter_create(IUnknown *punkout, HRESULT *phr) ...@@ -250,7 +250,7 @@ IUnknown * CALLBACK QTSplitter_create(IUnknown *punkout, HRESULT *phr)
QTSplitter *This; QTSplitter *This;
static const WCHAR wcsInputPinName[] = {'I','n','p','u','t',' ','P','i','n',0}; static const WCHAR wcsInputPinName[] = {'I','n','p','u','t',' ','P','i','n',0};
EnterMovies(); EnterMoviesOnThread(0);
RegisterWineDataHandler(); RegisterWineDataHandler();
...@@ -324,7 +324,7 @@ static void QT_Destroy(QTSplitter *This) ...@@ -324,7 +324,7 @@ static void QT_Destroy(QTSplitter *This)
if (This->aSession) if (This->aSession)
MovieAudioExtractionEnd(This->aSession); MovieAudioExtractionEnd(This->aSession);
ExitMovies(); ExitMoviesOnThread();
LeaveCriticalSection(&This->csReceive); LeaveCriticalSection(&This->csReceive);
if (This->loaderThread) if (This->loaderThread)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment