diff options
author | Gareth Stockwell <ext-gareth.stockwell@nokia.com> | 2010-06-17 08:42:52 (GMT) |
---|---|---|
committer | Gareth Stockwell <ext-gareth.stockwell@nokia.com> | 2010-07-07 12:26:22 (GMT) |
commit | 64f711e91a30c7689314f4bceca78745236f8bee (patch) | |
tree | 1235eab8f556d15443c3a970ed488765adbd57ec /src | |
parent | 31d4037ad8e07fc4302a846271b28965f3e11069 (diff) | |
download | Qt-64f711e91a30c7689314f4bceca78745236f8bee.zip Qt-64f711e91a30c7689314f4bceca78745236f8bee.tar.gz Qt-64f711e91a30c7689314f4bceca78745236f8bee.tar.bz2 |
MMF Phonon backend: call winId() from VideoWidget constructor
This is to be consistent with the backends for other platforms, which
also call QWidget::winId() on the VideoWidget (or one of its children)
during construction.
Reviewed-by: Thierry Bastian
Diffstat (limited to 'src')
-rw-r--r-- | src/3rdparty/phonon/mmf/abstractvideooutput.cpp | 3 | ||||
-rw-r--r-- | src/3rdparty/phonon/mmf/abstractvideoplayer.cpp | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/src/3rdparty/phonon/mmf/abstractvideooutput.cpp b/src/3rdparty/phonon/mmf/abstractvideooutput.cpp index a8aabfd..2d221ed 100644 --- a/src/3rdparty/phonon/mmf/abstractvideooutput.cpp +++ b/src/3rdparty/phonon/mmf/abstractvideooutput.cpp @@ -60,7 +60,8 @@ MMF::AbstractVideoOutput::AbstractVideoOutput(QWidget *parent) , m_aspectRatio(DefaultAspectRatio) , m_scaleMode(DefaultScaleMode) { - + // Ensure that this widget has a native window handle + winId(); } MMF::AbstractVideoOutput::~AbstractVideoOutput() diff --git a/src/3rdparty/phonon/mmf/abstractvideoplayer.cpp b/src/3rdparty/phonon/mmf/abstractvideoplayer.cpp index c45ed98..9ea4d18 100644 --- a/src/3rdparty/phonon/mmf/abstractvideoplayer.cpp +++ b/src/3rdparty/phonon/mmf/abstractvideoplayer.cpp @@ -384,9 +384,6 @@ void MMF::AbstractVideoPlayer::initVideoOutput() // Suppress warnings in release builds Q_UNUSED(connected); - // Do these after all connections are complete, to ensure - // that any signals generated get to their destinations. - m_videoOutput->winId(); m_videoOutput->setVideoSize(m_videoFrameSize); } |