diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2017-05-04 10:55:35 +0200 |
---|---|---|
committer | Jani Heikkinen <jani.heikkinen@qt.io> | 2017-05-08 18:07:13 +0000 |
commit | b5c5f12588a20e88b472d32b0532f6129930f02c (patch) | |
tree | f76fc2e76c9b051c9c4deb8917fb380fcb9afa33 | |
parent | 565f9650bfc3c867cd10002f164b8ea9c975e56e (diff) |
Disable hardware video decoding on macOS
When WebEngine is built with proprietary codecs enabled, this leads
to usage of the macOS video hardware acceleration framework. Because
of missing support of Rectangle OpenGL textures on the Qt WebEngine
side, AVC videos are not displayed correctly.
Disable hardware video decoding on macOS until said support is
implemented.
Task-number: QTBUG-60002
Change-Id: I5faf8df00362d442c5a6f207cc2a9637d663ad00
Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io>
-rw-r--r-- | src/core/web_engine_context.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/web_engine_context.cpp b/src/core/web_engine_context.cpp index 60622b4ae..7359eeea8 100644 --- a/src/core/web_engine_context.cpp +++ b/src/core/web_engine_context.cpp @@ -322,6 +322,12 @@ WebEngineContext::WebEngineContext() // Enabled on OS X and Linux but currently not working. It worked in 5.7 on OS X. parsedCommandLine->AppendSwitch(switches::kDisableGpuMemoryBufferVideoFrames); +#if defined(Q_OS_MACOS) + // Accelerated decoding currently does not work on macOS due to issues with OpenGL Rectangle + // texture support. See QTBUG-60002. + parsedCommandLine->AppendSwitch(switches::kDisableAcceleratedVideoDecode); +#endif + if (useEmbeddedSwitches) { // Inspired by the Android port's default switches if (!parsedCommandLine->HasSwitch(switches::kDisableOverlayScrollbar)) |