SHA256
1
0
forked from pool/wireplumber

Accepting request 948949 from home:alarrosa:branches:multimedia:libs

- Add another patch from upstream:
  * 0011-default-nodes-add-more-logs.patch

OBS-URL: https://build.opensuse.org/request/show/948949
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/wireplumber?expand=0&rev=26
This commit is contained in:
Antonio Larrosa 2022-01-25 08:39:39 +00:00 committed by Git OBS Bridge
parent 0026b12345
commit b0d3a20766
3 changed files with 60 additions and 3 deletions

View File

@ -0,0 +1,53 @@
From b4245d64c5117015fa293148273f86bdfbeb494f Mon Sep 17 00:00:00 2001
From: Julian Bouzas <julian.bouzas@collabora.com>
Date: Wed, 12 Jan 2022 13:39:57 -0500
Subject: [PATCH 11/14] default-nodes: add more logs
---
modules/module-default-nodes.c | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)
diff --git a/modules/module-default-nodes.c b/modules/module-default-nodes.c
index 354c474..ac9a87b 100644
--- a/modules/module-default-nodes.c
+++ b/modules/module-default-nodes.c
@@ -401,8 +401,13 @@ nodes_ready (WpDefaultNodes * self)
ready_nodes++;
}
- if (ready_nodes < total_nodes)
+ if (ready_nodes < total_nodes) {
+ const gchar *device_name = wp_pipewire_object_get_property (
+ WP_PIPEWIRE_OBJECT (device), PW_KEY_DEVICE_NAME);
+ wp_debug_object (self, "device '%s' is not ready (%d/%d)", device_name,
+ ready_nodes, total_nodes);
return FALSE;
+ }
}
}
@@ -424,8 +429,12 @@ nodes_ready (WpDefaultNodes * self)
NULL);
if (!port &&
(g_strcmp0 ("Audio/Source/Virtual", media_class) == 0 ||
- g_strcmp0 ("Video/Source/Virtual", media_class) == 0))
+ g_strcmp0 ("Video/Source/Virtual", media_class) == 0)) {
+ const gchar *node_name = wp_pipewire_object_get_property (
+ WP_PIPEWIRE_OBJECT (node), PW_KEY_NODE_NAME);
+ wp_debug_object (self, "virtual node '%s' is not ready", node_name);
return FALSE;
+ }
}
}
@@ -465,6 +474,7 @@ schedule_rescan (WpDefaultNodes * self)
g_autoptr (WpCore) core = wp_object_get_core (WP_OBJECT (self));
g_return_if_fail (core);
+ wp_debug_object (self, "scheduling default nodes rescan");
wp_core_sync_closure (core, NULL, g_cclosure_new_object (
G_CALLBACK (sync_rescan), G_OBJECT (self)));
}
--
2.34.1

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Jan 25 08:34:28 UTC 2022 - Antonio Larrosa <alarrosa@suse.com>
- Add another patch from upstream:
* 0011-default-nodes-add-more-logs.patch
-------------------------------------------------------------------
Mon Jan 24 18:32:54 UTC 2022 - Antonio Larrosa <alarrosa@suse.com>

View File

@ -40,9 +40,7 @@ Patch7: 0007-default-nodes-check-if-the-ports-exist-in-rescan_om.patch
Patch8: 0008-scripts-monitors-log-warning-if-spa-devices-were-not.patch
Patch9: 0009-default-nodes-check-if-default-node-has-available-ro.patch
Patch10: 0010-added-support-for-disabling-nodes-and-devices-throug.patch
#0009-default-nodes-check-if-default-node-has-available-ro.patch
#0010-added-support-for-disabling-nodes-and-devices-throug.patch
#0011-default-nodes-add-more-logs.patch
Patch11: 0011-default-nodes-add-more-logs.patch
#0012-device-activation-show-device-name-in-logs.patch
#0013-scripts-fallback-to-empty-config-table-if-args-were-.patch