mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-05-01 09:17:58 +02:00
device: debug and enhance spa device event handling
This commit is contained in:
parent
fdac497f0b
commit
9b74fbc6ac
1 changed files with 8 additions and 7 deletions
|
|
@ -346,17 +346,18 @@ spa_device_event_event (void *data, const struct spa_event *event)
|
|||
WpSpaDevice *self = WP_SPA_DEVICE (data);
|
||||
g_autoptr (WpSpaPod) pod =
|
||||
wp_spa_pod_new_wrap_const ((const struct spa_pod *) event);
|
||||
guint32 id;
|
||||
const gchar *type;
|
||||
guint32 id = -1;
|
||||
const gchar *type = NULL;
|
||||
g_autoptr (WpSpaPod) props = NULL;
|
||||
g_autoptr (GObject) child = NULL;
|
||||
|
||||
wp_spa_pod_get_object (pod, &type,
|
||||
"Object", "i", &id,
|
||||
"Props", "?P", &props,
|
||||
NULL);
|
||||
wp_trace_boxed (WP_TYPE_SPA_POD, pod, "device event");
|
||||
|
||||
child = wp_spa_device_get_managed_object (self, id);
|
||||
if (wp_spa_pod_get_object (pod, &type,
|
||||
"Object", "i", &id,
|
||||
"Props", "?P", &props,
|
||||
NULL))
|
||||
child = wp_spa_device_get_managed_object (self, id);
|
||||
|
||||
if (child && !g_strcmp0 (type, "ObjectConfig") &&
|
||||
WP_IS_PIPEWIRE_OBJECT (child) && props) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue