forked from pool/wireplumber
Antonio Larrosa
f5cfdfb8e7
- Add patch from upstream to fix a problem saving the default route: * 0001-add-missing-break-in-best-route-selection-logic.patch - Add patch to let wireplumber build in Leap 15.3/SLE-15-SP3 which only have meson 0.54: * reduce-meson-required-version.patch - Add %post/%pre/... sections to enable the user service automatically OBS-URL: https://build.opensuse.org/request/show/929023 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/wireplumber?expand=0&rev=7
27 lines
897 B
Diff
27 lines
897 B
Diff
From ff9b49064df436b0523bda66e567eb60ecf07f70 Mon Sep 17 00:00:00 2001
|
|
From: George Kiagiadakis <george.kiagiadakis@collabora.com>
|
|
Date: Mon, 1 Nov 2021 12:14:04 +0200
|
|
Subject: [PATCH] default-routes.lua: add missing break in best route selection
|
|
logic
|
|
|
|
Fixes #86
|
|
---
|
|
src/scripts/default-routes.lua | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
diff --git a/src/scripts/default-routes.lua b/src/scripts/default-routes.lua
|
|
index 9c5593a4..b55ae4e0 100644
|
|
--- a/src/scripts/default-routes.lua
|
|
+++ b/src/scripts/default-routes.lua
|
|
@@ -266,6 +266,7 @@ function findBestRoute(dev_info, device_id)
|
|
if ri.direction == "Output" and ri.available ~= ri.prev_available then
|
|
best_avail = ri
|
|
ri.save = true
|
|
+ break
|
|
elseif ri.available == "yes" then
|
|
if (best_avail == nil or ri.priority > best_avail.priority) then
|
|
best_avail = ri
|
|
--
|
|
GitLab
|
|
|