diff options
author | Thiago Macieira <thiago.macieira@nokia.com> | 2010-03-30 13:38:25 (GMT) |
---|---|---|
committer | Thiago Macieira <thiago.macieira@nokia.com> | 2010-03-30 13:38:25 (GMT) |
commit | 7c613a9ef4610fa2e0e1630eb3cd2b474875631d (patch) | |
tree | 757be578070f7cb7c724476e7b6980ee5ad215a4 /src/3rdparty/phonon | |
parent | 39f88fc60ad6ce323000a10b2925ad7dbb1544c2 (diff) | |
parent | c45ce66ce417718e09de276bfdb663aa5e9fe366 (diff) | |
download | Qt-7c613a9ef4610fa2e0e1630eb3cd2b474875631d.zip Qt-7c613a9ef4610fa2e0e1630eb3cd2b474875631d.tar.gz Qt-7c613a9ef4610fa2e0e1630eb3cd2b474875631d.tar.bz2 |
Merge remote branch 'origin/4.6' into qt-4.7-from-4.6
Conflicts:
src/s60installs/bwins/QtGuiu.def
src/s60installs/eabi/QtGuiu.def
Diffstat (limited to 'src/3rdparty/phonon')
-rw-r--r-- | src/3rdparty/phonon/mmf/videoplayer_dsa.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/3rdparty/phonon/mmf/videoplayer_dsa.cpp b/src/3rdparty/phonon/mmf/videoplayer_dsa.cpp index 21cdb16..732d2d9 100644 --- a/src/3rdparty/phonon/mmf/videoplayer_dsa.cpp +++ b/src/3rdparty/phonon/mmf/videoplayer_dsa.cpp @@ -162,7 +162,10 @@ void MMF::DsaVideoPlayer::prepareCompleted() void MMF::DsaVideoPlayer::handleVideoWindowChanged() { if (!m_window) { - m_window = QApplication::activeWindow()->effectiveWinId()->DrawableWindow(); + if (QWidget *window = QApplication::activeWindow()) + m_window = window->effectiveWinId()->DrawableWindow(); + else + m_window = 0; m_videoScreenRect = TRect(); } @@ -213,6 +216,9 @@ void MMF::DsaVideoPlayer::handleParametersChanged(VideoParameters parameters) TRACE_CONTEXT(DsaVideoPlayer::handleParametersChanged, EVideoInternal); TRACE_ENTRY_0(); + if (!m_window) + return; + #ifndef QT_NO_DEBUG getDsaRegion(m_wsSession, *m_window); #endif |