aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--binding/audiomixer.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/binding/audiomixer.c b/binding/audiomixer.c
index e09b37b..781424a 100644
--- a/binding/audiomixer.c
+++ b/binding/audiomixer.c
@@ -407,9 +407,7 @@ on_remote_state_changed(void *data, enum pw_remote_state old,
if (state == PW_REMOTE_STATE_CONNECTED) {
self->core_proxy = pw_remote_get_core_proxy(self->remote);
self->registry_proxy = pw_core_proxy_get_registry(
- self->core_proxy,
- PW_TYPE_INTERFACE_Registry,
- PW_VERSION_REGISTRY, 0);
+ self->core_proxy, PW_VERSION_REGISTRY_PROXY, 0);
pw_registry_proxy_add_listener(self->registry_proxy,
&self->registry_listener,
&registry_events, self);