diff options
author | Friedemann Kleint <Friedemann.Kleint@digia.com> | 2012-11-19 12:10:16 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-11-19 13:53:23 +0100 |
commit | 6826f684e29b078888c35149c520bf41012b0de4 (patch) | |
tree | 36a4ab3e64dc8a1fa7ef3550db435158414366e4 /src/imports | |
parent | a73dfa7c63b82e25f93e44ed6386664373aaca74 (diff) | |
download | qtmultimedia-6826f684e29b078888c35149c520bf41012b0de4.tar.gz |
Fix compilation with -no-rtti.
Availability of dynamic_cast should be checked.
Task-number: QTBUG-27939
Change-Id: I24c0bca7859a45c6be89c507dadd91e7175939e0
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
Diffstat (limited to 'src/imports')
-rw-r--r-- | src/imports/multimedia/qdeclarativevideooutput.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/imports/multimedia/qdeclarativevideooutput.cpp b/src/imports/multimedia/qdeclarativevideooutput.cpp index a16bf4923..92f153a3c 100644 --- a/src/imports/multimedia/qdeclarativevideooutput.cpp +++ b/src/imports/multimedia/qdeclarativevideooutput.cpp @@ -188,7 +188,10 @@ void QDeclarativeVideoOutput::setSource(QObject *source) // Make sure our backend is a QDeclarativeVideoRendererBackend m_backend.reset(); createBackend(0); - Q_ASSERT(m_backend && dynamic_cast<QDeclarativeVideoRendererBackend *>(m_backend.data())); + Q_ASSERT(m_backend); +#ifndef QT_NO_DYNAMIC_CAST + Q_ASSERT(dynamic_cast<QDeclarativeVideoRendererBackend *>(m_backend.data())); +#endif QAbstractVideoSurface * const surface = m_backend->videoSurface(); Q_ASSERT(surface); m_source.data()->setProperty("videoSurface", |