diff options
author | Sam James <sam@gentoo.org> | 2022-07-09 04:53:45 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-07-09 04:53:45 +0100 |
commit | ab7af1e051e1ed13f33fb08389526e31f276a00f (patch) | |
tree | 908bab23a5b788e9b8fa93a46f3ef435ce1713a7 /media-video/wireplumber/files | |
parent | net-misc/streamlink: add 4.2.0 (diff) | |
download | gentoo-ab7af1e051e1ed13f33fb08389526e31f276a00f.tar.gz gentoo-ab7af1e051e1ed13f33fb08389526e31f276a00f.tar.bz2 gentoo-ab7af1e051e1ed13f33fb08389526e31f276a00f.zip |
media-video/wireplumber: backport crash fix
The worst thing being I actually saw this, had it open, but
forgot about it (because I think I'd confused it with the
done-PW backports).
Bug: https://gitlab.freedesktop.org/pipewire/wireplumber/-/issues/303
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-video/wireplumber/files')
-rw-r--r-- | media-video/wireplumber/files/wireplumber-0.4.11-alsa-lua-crash.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/media-video/wireplumber/files/wireplumber-0.4.11-alsa-lua-crash.patch b/media-video/wireplumber/files/wireplumber-0.4.11-alsa-lua-crash.patch new file mode 100644 index 000000000000..3bc8bbd08bb6 --- /dev/null +++ b/media-video/wireplumber/files/wireplumber-0.4.11-alsa-lua-crash.patch @@ -0,0 +1,33 @@ +https://gitlab.freedesktop.org/pipewire/wireplumber/-/commit/c16e637c329bc9dda8544b18f5bd47a8d63ee253 + +From c16e637c329bc9dda8544b18f5bd47a8d63ee253 Mon Sep 17 00:00:00 2001 +From: George Kiagiadakis <george.kiagiadakis@collabora.com> +Date: Thu, 7 Jul 2022 20:58:36 +0300 +Subject: [PATCH] alsa: use "obj_type" as a variable name to avoid shadowing + lua's "type" function + +This causes a crash when running in a VM because the code tries to +execute lua's "type()" and ends up executing the local string variable... + +Fixes: #303 +--- a/src/scripts/monitors/alsa.lua ++++ b/src/scripts/monitors/alsa.lua +@@ -49,7 +49,7 @@ function nonempty(str) + return str ~= "" and str or nil + end + +-function createNode(parent, id, type, factory, properties) ++function createNode(parent, id, obj_type, factory, properties) + local dev_props = parent.properties + + -- set the device id and spa factory name; REQUIRED, do not change +@@ -199,7 +199,7 @@ function createDevice(parent, id, factory, properties) + end + end + +-function prepareDevice(parent, id, type, factory, properties) ++function prepareDevice(parent, id, obj_type, factory, properties) + -- ensure the device has an appropriate name + local name = "alsa_card." .. + (properties["device.name"] or +GitLab |