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>
This commit is contained in:
committed by
The Qt Project
parent
a73dfa7c63
commit
6826f684e2
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user