fix: disable multi-plane format for software video (#2254)

This commit is contained in:
h-banii
2024-07-18 01:15:26 -03:00
committed by GitHub
parent 73c3e355fe
commit 64fb6c2597

View File

@ -100,9 +100,18 @@ if (config.get('options.disableHardwareAcceleration')) {
app.disableHardwareAcceleration(); app.disableHardwareAcceleration();
} }
if (is.linux() && config.plugins.isEnabled('shortcuts')) { if (is.linux()) {
const disabledFeatures = [
// Workaround for issue #2248
'UseMultiPlaneFormatForSoftwareVideo',
];
// Stops chromium from launching its own MPRIS service // Stops chromium from launching its own MPRIS service
app.commandLine.appendSwitch('disable-features', 'MediaSessionService'); if (config.plugins.isEnabled('shortcuts')) {
disabledFeatures.push('MediaSessionService');
}
app.commandLine.appendSwitch('disable-features', disabledFeatures.join());
} }
if (config.get('options.proxy')) { if (config.get('options.proxy')) {