summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/phonon
diff options
context:
space:
mode:
authorJustin McPherson <justin.mcpherson@nokia.com>2009-11-11 03:42:50 (GMT)
committerJustin McPherson <justin.mcpherson@nokia.com>2009-11-11 03:42:50 (GMT)
commitc3751d50288335d815eba8ae06977e5bfc1fa318 (patch)
tree3dcb6d782b60ddba65a798598dc8453a5e8bca49 /src/3rdparty/phonon
parent85d159995d73a676226446c232e196169dbc13d2 (diff)
downloadQt-c3751d50288335d815eba8ae06977e5bfc1fa318.zip
Qt-c3751d50288335d815eba8ae06977e5bfc1fa318.tar.gz
Qt-c3751d50288335d815eba8ae06977e5bfc1fa318.tar.bz2
Import change 924855 from phonon-svn.
r924855 | mkretz | 2009-02-12 05:49:12 +1000 (Thu, 12 Feb 2009) | 1 line forwardport: two more adaptor accesses where adaptor might be 0 Reviewed-by: Justin McPherson
Diffstat (limited to 'src/3rdparty/phonon')
-rw-r--r--src/3rdparty/phonon/phonon/audiooutput.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/3rdparty/phonon/phonon/audiooutput.cpp b/src/3rdparty/phonon/phonon/audiooutput.cpp
index e54ec1f..3d03dc4 100644
--- a/src/3rdparty/phonon/phonon/audiooutput.cpp
+++ b/src/3rdparty/phonon/phonon/audiooutput.cpp
@@ -126,7 +126,9 @@ void AudioOutput::setName(const QString &newName)
d->name = newName;
setVolume(Platform::loadVolume(newName));
#ifndef QT_NO_DBUS
- emit d->adaptor->nameChanged(newName);
+ if (d->adaptor) {
+ emit d->adaptor->nameChanged(newName);
+ }
#endif
}
@@ -403,7 +405,9 @@ void AudioOutputPrivate::handleAutomaticDeviceChange(const AudioOutputDevice &de
AudioOutputPrivate::~AudioOutputPrivate()
{
#ifndef QT_NO_DBUS
- emit adaptor->outputDestroyed();
+ if (adaptor) {
+ emit adaptor->outputDestroyed();
+ }
#endif
}