diff options
author | André de la Rocha <andre.rocha@qt.io> | 2021-09-15 06:16:28 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2021-09-17 09:59:32 +0000 |
commit | 3967a5c7c2de948a285581611d550338d43fdd95 (patch) | |
tree | 4775be6be5f38a937aaa98fc89b352cd92f85831 /src/multimedia/platform/windows/qwindowsintegration_p.h | |
parent | e3543802e6ac47906de5b2dbba01ae32bb669b18 (diff) |
Fail early on unsupported platform/compiler
Currently, QtMultimedia does not work with the MinGW compiler as the
latter lacks proper support for WMF, which is required by the Windows
backend. When QtMultimedia is built with MinGW, a dummy backend is
built, which returns nullptr for everything. Thus, applications built
with it end up crashing in random locations, which leads developers
to think it's due to some bug, instead of lack of support. It seems
better to fail as soon as the backend is instantiated and also provide
some meaningful message instead.
Task-number: QTBUG-95234
Change-Id: I3c773983c979bbc364810a400bf203fb21400ad6
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Reviewed-by: Doris Verria <doris.verria@qt.io>
Reviewed-by: Piotr Srebrny <piotr.srebrny@qt.io>
(cherry picked from commit d519452b438f474e1e24ab568b49efde67c1c65b)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src/multimedia/platform/windows/qwindowsintegration_p.h')
0 files changed, 0 insertions, 0 deletions