wireplumber 0.4.8
This commit is contained in:
parent
bbfa19e260
commit
a9834243de
@ -1,47 +0,0 @@
|
||||
From 6d4c8b732dfa143652421368f322ffa67942f438 Mon Sep 17 00:00:00 2001
|
||||
From: Wim Taymans <wtaymans@redhat.com>
|
||||
Date: Fri, 14 Jan 2022 16:28:48 +0100
|
||||
Subject: [PATCH] default-nodes: handle nodes without Routes
|
||||
|
||||
When a node has not part of any EnumRoute, we must assume it is
|
||||
available.
|
||||
|
||||
Fixes selection of Pro Audio nodes as default nodes.
|
||||
---
|
||||
modules/module-default-nodes.c | 6 ++++++
|
||||
1 file changed, 6 insertions(+)
|
||||
|
||||
diff --git a/modules/module-default-nodes.c b/modules/module-default-nodes.c
|
||||
index ac9a87b..5eddacb 100644
|
||||
--- a/modules/module-default-nodes.c
|
||||
+++ b/modules/module-default-nodes.c
|
||||
@@ -108,6 +108,7 @@ node_has_available_routes (WpDefaultNodes * self, WpNode *node)
|
||||
gint dev_id = dev_id_str ? atoi (dev_id_str) : -1;
|
||||
gint cpd = cpd_str ? atoi (cpd_str) : -1;
|
||||
g_autoptr (WpDevice) device = NULL;
|
||||
+ gint found = 0;
|
||||
|
||||
if (dev_id == -1 || cpd == -1)
|
||||
return TRUE;
|
||||
@@ -168,6 +169,7 @@ node_has_available_routes (WpDefaultNodes * self, WpNode *node)
|
||||
for (; wp_iterator_next (it, &v); g_value_unset (&v)) {
|
||||
gint32 *d = (gint32 *)g_value_get_pointer (&v);
|
||||
if (d && *d == cpd) {
|
||||
+ found++;
|
||||
if (route_avail != SPA_PARAM_AVAILABILITY_no)
|
||||
return TRUE;
|
||||
}
|
||||
@@ -175,6 +177,10 @@ node_has_available_routes (WpDefaultNodes * self, WpNode *node)
|
||||
}
|
||||
}
|
||||
}
|
||||
+ /* The node is part of a profile without routes so we assume it
|
||||
+ * is available. This can happen for Pro Audio profiles */
|
||||
+ if (found == 0)
|
||||
+ return TRUE;
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
--
|
||||
2.31.1
|
||||
|
||||
2
sources
2
sources
@ -1 +1 @@
|
||||
SHA512 (wireplumber-0.4.7.tar.bz2) = 7e33e5195aeed9d90f905e32ce5b35fee10cf1b2496e6966ef3cf85e1ab8d5ee64b78c7c35932b5f9f7bcbe9823a29a2805f0e85273c0c2752bd0d74a56ae7a7
|
||||
SHA512 (wireplumber-0.4.8.tar.bz2) = e85ea3b450d0ab7a517ecfa2f5ccde7414ce6dfdaa679a3f04f967826fdfdfae1190ed05c3bb8d453424d126c6b2b3418b089413b2d854e181d7c8f95eaf084b
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
Name: wireplumber
|
||||
Version: 0.4.7
|
||||
Release: 3%{?dist}
|
||||
Version: 0.4.8
|
||||
Release: 1%{?dist}
|
||||
Summary: A modular session/policy manager for PipeWire
|
||||
|
||||
License: MIT
|
||||
@ -8,7 +8,6 @@ URL: https://pipewire.pages.freedesktop.org/wireplumber/
|
||||
Source0: https://gitlab.freedesktop.org/pipewire/%{name}/-/archive/%{version}/%{name}-%{version}.tar.bz2
|
||||
|
||||
## upstream patches
|
||||
Patch0001: 0001-default-nodes-handle-nodes-without-Routes.patch
|
||||
|
||||
## upstreamable patches
|
||||
|
||||
@ -116,10 +115,13 @@ fi
|
||||
%{_datadir}/gir-1.0/Wp-0.4.gir
|
||||
|
||||
%changelog
|
||||
* Mon Feb 7 2022 Wim Taymans <wim.taymans@redhat.com> - 0.4.8-1
|
||||
- wireplumber 0.4.8
|
||||
|
||||
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.7-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||
|
||||
* Fri Jan 13 2022 Wim Taymans <wim.taymans@redhat.com> - 0.4.7-2
|
||||
* Fri Jan 14 2022 Wim Taymans <wim.taymans@redhat.com> - 0.4.7-2
|
||||
- Add patch to fix default device.
|
||||
|
||||
* Thu Jan 13 2022 Wim Taymans <wim.taymans@redhat.com> - 0.4.7-1
|
||||
|
||||
Loading…
Reference in New Issue
Block a user