Antonio Larrosa
79a19a2d78
- Add two patches from upstream: * 0002-policy-bluetooth-fix-string.find-crash-with-nil-string.patch * 0003-si-audio-adapter-relax-format-parsing.patch OBS-URL: https://build.opensuse.org/request/show/960946 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/wireplumber?expand=0&rev=33
27 lines
826 B
Diff
27 lines
826 B
Diff
From c4c5ca8e2215e5fc295b39af4504c43ed3fe176f Mon Sep 17 00:00:00 2001
|
|
From: George Kiagiadakis <george.kiagiadakis@collabora.com>
|
|
Date: Mon, 14 Feb 2022 10:38:51 +0200
|
|
Subject: [PATCH] policy-bluetooth: fix string.find crash with nil string
|
|
|
|
Fixes #193
|
|
---
|
|
src/scripts/policy-bluetooth.lua | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/src/scripts/policy-bluetooth.lua b/src/scripts/policy-bluetooth.lua
|
|
index 24fbffbb..f8f69a14 100644
|
|
--- a/src/scripts/policy-bluetooth.lua
|
|
+++ b/src/scripts/policy-bluetooth.lua
|
|
@@ -118,7 +118,7 @@ local function isSwitched(device)
|
|
end
|
|
|
|
local function isBluez5AudioSink(sink_name)
|
|
- if string.find(sink_name, "bluez_output.") ~= nil then
|
|
+ if sink_name and string.find(sink_name, "bluez_output.") ~= nil then
|
|
return true
|
|
end
|
|
return false
|
|
--
|
|
GitLab
|
|
|