summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/phonon/mmf/backend.cpp
diff options
context:
space:
mode:
authorGareth Stockwell <gareth.stockwell@sosco.com>2009-08-21 10:39:36 (GMT)
committerGareth Stockwell <gareth.stockwell@sosco.com>2009-08-21 10:39:36 (GMT)
commit3f39d630d3dcc161c4a85127129274ca7ea857a2 (patch)
treeba726756cfdd87883fd546ff2f0e5c2b20e64eac /src/3rdparty/phonon/mmf/backend.cpp
parent932c48658656fa328507b16e39c3a6cc820ef15e (diff)
downloadQt-3f39d630d3dcc161c4a85127129274ca7ea857a2.zip
Qt-3f39d630d3dcc161c4a85127129274ca7ea857a2.tar.gz
Qt-3f39d630d3dcc161c4a85127129274ca7ea857a2.tar.bz2
Further tidied up volume handling
Diffstat (limited to 'src/3rdparty/phonon/mmf/backend.cpp')
-rw-r--r--src/3rdparty/phonon/mmf/backend.cpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/3rdparty/phonon/mmf/backend.cpp b/src/3rdparty/phonon/mmf/backend.cpp
index f610b60..ad60046 100644
--- a/src/3rdparty/phonon/mmf/backend.cpp
+++ b/src/3rdparty/phonon/mmf/backend.cpp
@@ -98,17 +98,24 @@ bool Backend::connectNodes(QObject *source, QObject *target)
MediaObject *const mediaObject = qobject_cast<MediaObject *>(source);
AudioOutput *const audioOutput = qobject_cast<AudioOutput *>(target);
-
+ VideoWidget *const videoWidget = qobject_cast<VideoWidget *>(target);
+
bool result = false;
if(mediaObject and audioOutput)
{
TRACE("mediaObject 0x%08x -> audioOutput 0x%08x", mediaObject, audioOutput);
-
- audioOutput->setVolumeControl(mediaObject);
+ audioOutput->setVolumeObserver(*mediaObject);
result = true;
}
+ if(mediaObject and videoWidget)
+ {
+ TRACE("mediaObject 0x%08x -> videoWidget 0x%08x", mediaObject, videoWidget);
+ // TODO: the actual connection :)
+ result = true;
+ }
+
TRACE_RETURN("%d", result);
}