diff options
author | Thierry Bastian <thierry.bastian@nokia.com> | 2009-07-08 12:26:57 (GMT) |
---|---|---|
committer | Thierry Bastian <thierry.bastian@nokia.com> | 2009-07-08 12:28:13 (GMT) |
commit | 94c44ba8d6d1220d00a844d95f9dfb15165ea983 (patch) | |
tree | b4f71776d592d9d36e370a5d9b8d0fef9b56192e | |
parent | a92a6ede9c6a13833d1a6c83b863a5e492b2ba9e (diff) | |
download | Qt-94c44ba8d6d1220d00a844d95f9dfb15165ea983.zip Qt-94c44ba8d6d1220d00a844d95f9dfb15165ea983.tar.gz Qt-94c44ba8d6d1220d00a844d95f9dfb15165ea983.tar.bz2 |
Phonon: Fixed a possible race condition
Task-number: 257495
-rw-r--r-- | src/3rdparty/phonon/ds9/mediaobject.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/3rdparty/phonon/ds9/mediaobject.cpp b/src/3rdparty/phonon/ds9/mediaobject.cpp index 1d0b69d..26ba8eb 100644 --- a/src/3rdparty/phonon/ds9/mediaobject.cpp +++ b/src/3rdparty/phonon/ds9/mediaobject.cpp @@ -207,10 +207,10 @@ namespace Phonon HRESULT hr = S_OK; + QMutexLocker locker(&m_mutex); m_currentRender = w.graph; m_currentRenderId = w.id; if (w.task == ReplaceGraph) { - QMutexLocker locker(&m_mutex); HANDLE h; int index = -1; |