pipewire: Fix screen sharing with Chromium (#104504)

See https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/270.
E.g. Fedora and Arch have already backported that patch.

This avoids errors like:
Chromium: [E][module-protocol-native.c:562 on_remote_data()] protocol-native 0x33df5483c780: got connection error
pipewire[1168]: [E][000002106.051912][module-protocol-native.c:305 connection_data()] protocol-native 0x1b96900: client 0x1d084f0 error -22 (Invalid argument)

I've successfully tested screen sharing with Chromium 87.0.4280.66.

cc https://github.com/NixOS/nixpkgs/issues/91218
This commit is contained in:
Michael Weiss 2020-11-21 21:29:11 +01:00 committed by GitHub
parent 30c2069a9c
commit 0e5158fa9d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -65,6 +65,11 @@ stdenv.mkDerivation rec {
./alsa-profiles-use-libdir.patch
# Move installed tests into their own output.
./installed-tests-path.patch
# Fix older clients (e.g. Chrome/Chromium):
(fetchpatch { # protocol-native: do version check on HELLO
url = "https://gitlab.freedesktop.org/pipewire/pipewire/-/commit/b8c7b36d3b8be16593f554964cf2f852c21b5c2c.patch";
sha256 = "18461grisrgqbad6bfa1bm17mslddgfmjfprc9vjvab2mmpsjss9";
})
];
nativeBuildInputs = [