summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYoann Lopes <yoann.lopes@digia.com>2013-02-19 13:38:31 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-02-19 14:22:38 +0100
commit2db2cde0d8433ad1aed59412717c4cddf496ba66 (patch)
tree52783b14c34fa7c26ccaeecf62e76d6f1a4c5281
parent9ea9d57bbf3b169d7bee5d2c36a2e0a4b26c965b (diff)
WMF: removed unnecessary dynamic_cast.
Task-number: QTBUG-29722 Change-Id: Ia0e5c8fb90b231a8d9764524709d5848397c2afb Reviewed-by: Andy Nichols <andy.nichols@digia.com>
-rw-r--r--src/plugins/wmf/player/mfvideorenderercontrol.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/wmf/player/mfvideorenderercontrol.cpp b/src/plugins/wmf/player/mfvideorenderercontrol.cpp
index 528a5dce7..6baa3716e 100644
--- a/src/plugins/wmf/player/mfvideorenderercontrol.cpp
+++ b/src/plugins/wmf/player/mfvideorenderercontrol.cpp
@@ -2156,12 +2156,12 @@ void MFVideoRendererControl::customEvent(QEvent *event)
present();
return;
}
- QChildEvent *childEvent = dynamic_cast<QChildEvent*>(event);
- if (!childEvent) {
+ if (event->type() >= MediaStream::StartSurface) {
+ QChildEvent *childEvent = static_cast<QChildEvent*>(event);
+ static_cast<MediaStream*>(childEvent->child())->customEvent(event);
+ } else {
QObject::customEvent(event);
- return;
}
- static_cast<MediaStream*>(childEvent->child())->customEvent(event);
}
void MFVideoRendererControl::supportedFormatsChanged()