fix: disable gpu memory buffer video frames (#2519)

This commit is contained in:
h-banii
2024-10-16 19:11:33 -03:00
committed by GitHub
parent ea801f65ef
commit 5c9d3e3e67

View File

@ -131,17 +131,18 @@ if (config.get('options.disableHardwareAcceleration')) {
} }
if (is.linux()) { if (is.linux()) {
const disabledFeatures = [ // Workaround for issue #2248
// Workaround for issue #2248 if (
'UseMultiPlaneFormatForSoftwareVideo', process.env.XDG_SESSION_TYPE === 'wayland' ||
]; process.env.WAYLAND_DISPLAY
) {
app.commandLine.appendSwitch('disable-gpu-memory-buffer-video-frames');
}
// Stops chromium from launching its own MPRIS service // Stops chromium from launching its own MPRIS service
if (config.plugins.isEnabled('shortcuts')) { if (config.plugins.isEnabled('shortcuts')) {
disabledFeatures.push('MediaSessionService'); app.commandLine.appendSwitch('disable-features', 'MediaSessionService');
} }
app.commandLine.appendSwitch('disable-features', disabledFeatures.join());
} }
if (config.get('options.proxy')) { if (config.get('options.proxy')) {