Disable HW accelerated codecs

Fixes a crash when H.264 is used (in P2P mode).
This commit is contained in:
Saúl Ibarra Corretgé 2020-05-27 10:57:03 +02:00
parent 20ec0bfd93
commit 5da33a0094
1 changed files with 4 additions and 0 deletions

View File

@ -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;