aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaúl Ibarra Corretgé <s@saghul.net>2020-05-27 10:57:03 +0200
committerSaúl Ibarra Corretgé <s@saghul.net>2020-05-27 10:57:03 +0200
commit5da33a00941ab1b210d6111e68b28d2182fbb983 (patch)
treea52efb6934c6b4d130cd26bec0a799f65e6b90c6
parent20ec0bfd931e1c34cd553951fac6fe81d0a5d054 (diff)
Disable HW accelerated codecs
Fixes a crash when H.264 is used (in P2P mode).
-rw-r--r--main.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/main.js b/main.js
index bb3dc9c..623049d 100644
--- a/main.js
+++ b/main.js
@@ -23,6 +23,10 @@ const config = require('./app/features/config');
// We need this because of https://github.com/electron/electron/issues/18214
app.commandLine.appendSwitch('disable-site-isolation-trials');
+// https://bugs.chromium.org/p/chromium/issues/detail?id=1086373
+app.commandLine.appendSwitch('disable-webrtc-hw-encoding');
+app.commandLine.appendSwitch('disable-webrtc-hw-decoding');
+
// Needed until robot.js is fixed: https://github.com/octalmage/robotjs/issues/580
app.allowRendererProcessReuse = false;