summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/phonon/mmf/videoplayer_dsa.cpp
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2010-07-09 05:36:49 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2010-07-09 05:36:49 (GMT)
commit74a248462ef36f7784fd0816ee08030412459930 (patch)
treeab41c0313467be480446397a8fe5463abee83035 /src/3rdparty/phonon/mmf/videoplayer_dsa.cpp
parent49b828102626ba6faa38ea48d9f570283dd7fa9f (diff)
parent31cd8c15c0fdb2f08c2652609a57413a715d1b13 (diff)
downloadQt-74a248462ef36f7784fd0816ee08030412459930.zip
Qt-74a248462ef36f7784fd0816ee08030412459930.tar.gz
Qt-74a248462ef36f7784fd0816ee08030412459930.tar.bz2
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into 4.7
Diffstat (limited to 'src/3rdparty/phonon/mmf/videoplayer_dsa.cpp')
-rw-r--r--src/3rdparty/phonon/mmf/videoplayer_dsa.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/3rdparty/phonon/mmf/videoplayer_dsa.cpp b/src/3rdparty/phonon/mmf/videoplayer_dsa.cpp
index 1925471..deb9774 100644
--- a/src/3rdparty/phonon/mmf/videoplayer_dsa.cpp
+++ b/src/3rdparty/phonon/mmf/videoplayer_dsa.cpp
@@ -61,6 +61,8 @@ DsaVideoPlayer::~DsaVideoPlayer()
void MMF::DsaVideoPlayer::videoWindowScreenRectChanged()
{
+ Q_ASSERT(m_videoOutput);
+
QRect windowRect = static_cast<DsaVideoOutput *>(m_videoOutput)->videoWindowScreenRect();
// Clip to physical window size
@@ -124,12 +126,12 @@ void MMF::DsaVideoPlayer::createPlayer()
// CVideoPlayerUtility::NewL starts DSA
m_dsaActive = true;
-
- m_player->RegisterForVideoLoadingNotification(*this);
}
void MMF::DsaVideoPlayer::initVideoOutput()
{
+ Q_ASSERT(m_videoOutput);
+
bool connected = connect(
m_videoOutput, SIGNAL(videoWindowScreenRectChanged()),
this, SLOT(videoWindowScreenRectChanged())
@@ -156,7 +158,8 @@ void MMF::DsaVideoPlayer::initVideoOutput()
void MMF::DsaVideoPlayer::prepareCompleted()
{
- videoWindowScreenRectChanged();
+ if (m_videoOutput)
+ videoWindowScreenRectChanged();
}
void MMF::DsaVideoPlayer::handleVideoWindowChanged()