diff options
author | Thierry Bastian <thierry.bastian@nokia.com> | 2009-08-24 15:33:53 (GMT) |
---|---|---|
committer | Thierry Bastian <thierry.bastian@nokia.com> | 2009-08-24 15:35:41 (GMT) |
commit | 5ee3c7a120477668904502a997d88d0c5a0fd976 (patch) | |
tree | db363af27031fd719215c382e115b6272089c4c6 /src/3rdparty/phonon/ds9/backend.h | |
parent | cf354eb2bb24de1076f126c526317ac7e1d9ac4d (diff) | |
download | Qt-5ee3c7a120477668904502a997d88d0c5a0fd976.zip Qt-5ee3c7a120477668904502a997d88d0c5a0fd976.tar.gz Qt-5ee3c7a120477668904502a997d88d0c5a0fd976.tar.bz2 |
Phonon/ds9: fix a potential dead-lock found by user
This is following merge request 878. A customer was able to get a dead-
lock when calling at the same time RenderFile and enumerating the audio
devices. We now have a global mutex for that.
Diffstat (limited to 'src/3rdparty/phonon/ds9/backend.h')
-rw-r--r-- | src/3rdparty/phonon/ds9/backend.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/3rdparty/phonon/ds9/backend.h b/src/3rdparty/phonon/ds9/backend.h index ad638f2..9b2c2a2 100644 --- a/src/3rdparty/phonon/ds9/backend.h +++ b/src/3rdparty/phonon/ds9/backend.h @@ -23,6 +23,7 @@ along with this library. If not, see <http://www.gnu.org/licenses/>. #include <phonon/phononnamespace.h> #include <QtCore/QList> +#include <QtCore/QMutex> #include "compointer.h" #include "backendnode.h" @@ -63,6 +64,8 @@ namespace Phonon Filter getAudioOutputFilter(int index) const; + static QMutex *Backend::directShowMutex(); + Q_SIGNALS: void objectDescriptionChanged(ObjectDescriptionType); @@ -74,6 +77,7 @@ namespace Phonon }; mutable QVector<AudioMoniker> m_audioOutputs; mutable QVector<CLSID> m_audioEffects; + mutable QMutex m_directShowMutex; }; } } |