summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/phonon/mmf/videowidget.cpp
diff options
context:
space:
mode:
authorGareth Stockwell <ext-gareth.stockwell@nokia.com>2009-12-04 11:49:12 (GMT)
committerGareth Stockwell <ext-gareth.stockwell@nokia.com>2009-12-08 13:07:39 (GMT)
commit3f648dc075689e2ffedda2769cc76b4a56fb1073 (patch)
treee216758e5d86e14c7d3d8630796e11f355b4add4 /src/3rdparty/phonon/mmf/videowidget.cpp
parent8e21fc62fe40c8e393007516958c216ad8dbd629 (diff)
downloadQt-3f648dc075689e2ffedda2769cc76b4a56fb1073.zip
Qt-3f648dc075689e2ffedda2769cc76b4a56fb1073.tar.gz
Qt-3f648dc075689e2ffedda2769cc76b4a56fb1073.tar.bz2
Implemented node disconnection in Phonon MMF backend
Task-number: QTBUG-4663 Reviewed-by: Frans Englich
Diffstat (limited to 'src/3rdparty/phonon/mmf/videowidget.cpp')
-rw-r--r--src/3rdparty/phonon/mmf/videowidget.cpp14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/3rdparty/phonon/mmf/videowidget.cpp b/src/3rdparty/phonon/mmf/videowidget.cpp
index bd22307..bc9acfd 100644
--- a/src/3rdparty/phonon/mmf/videowidget.cpp
+++ b/src/3rdparty/phonon/mmf/videowidget.cpp
@@ -157,10 +157,18 @@ QWidget* MMF::VideoWidget::widget()
return m_videoOutput.data();
}
-bool MMF::VideoWidget::activateOnMediaObject(MediaObject *mo)
+//-----------------------------------------------------------------------------
+// MediaNode
+//-----------------------------------------------------------------------------
+
+void MMF::VideoWidget::connectMediaObject(MediaObject *mediaObject)
+{
+ mediaObject->setVideoOutput(m_videoOutput.data());
+}
+
+void MMF::VideoWidget::disconnectMediaObject(MediaObject *mediaObject)
{
- mo->setVideoOutput(m_videoOutput.data());
- return true;
+ mediaObject->setVideoOutput(0);
}
QT_END_NAMESPACE