diff options
Diffstat (limited to 'src/multimediawidgets/qvideowidget.cpp')
-rw-r--r-- | src/multimediawidgets/qvideowidget.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/multimediawidgets/qvideowidget.cpp b/src/multimediawidgets/qvideowidget.cpp index 42d489524..c2a594309 100644 --- a/src/multimediawidgets/qvideowidget.cpp +++ b/src/multimediawidgets/qvideowidget.cpp @@ -491,7 +491,7 @@ void QVideoWidgetPrivate::clearService() bool QVideoWidgetPrivate::createWidgetBackend() { - if (QMediaControl *control = service->requestControl(QVideoWidgetControl_iid)) { + if (QObject *control = service->requestControl(QVideoWidgetControl_iid)) { if (QVideoWidgetControl *widgetControl = qobject_cast<QVideoWidgetControl *>(control)) { widgetBackend = new QVideoWidgetControlBackend(service, widgetControl, q_func()); @@ -506,7 +506,7 @@ bool QVideoWidgetPrivate::createWidgetBackend() bool QVideoWidgetPrivate::createWindowBackend() { - if (QMediaControl *control = service->requestControl(QVideoWindowControl_iid)) { + if (QObject *control = service->requestControl(QVideoWindowControl_iid)) { if (QVideoWindowControl *windowControl = qobject_cast<QVideoWindowControl *>(control)) { windowBackend = new QWindowVideoWidgetBackend(service, windowControl, q_func()); currentBackend = windowBackend; @@ -522,7 +522,7 @@ bool QVideoWidgetPrivate::createWindowBackend() bool QVideoWidgetPrivate::createRendererBackend() { - QMediaControl *control = service + QObject *control = service ? service->requestControl(QVideoRendererControl_iid) : nullptr; rendererBackend = new QRendererVideoWidgetBackend(service, |