mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-10 10:11:46 +00:00
fix: disable gpu memory buffer video frames (#2519)
This commit is contained in:
15
src/index.ts
15
src/index.ts
@ -131,17 +131,18 @@ if (config.get('options.disableHardwareAcceleration')) {
|
||||
}
|
||||
|
||||
if (is.linux()) {
|
||||
const disabledFeatures = [
|
||||
// Workaround for issue #2248
|
||||
'UseMultiPlaneFormatForSoftwareVideo',
|
||||
];
|
||||
// Workaround for issue #2248
|
||||
if (
|
||||
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
|
||||
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')) {
|
||||
|
||||
Reference in New Issue
Block a user