interface: get_registry always returns a Registry type

This commit is contained in:
Wim Taymans 2019-05-21 15:46:31 +02:00
parent a564d9f3f1
commit 58fa5561b8
7 changed files with 7 additions and 10 deletions

View file

@ -1326,7 +1326,6 @@ static void on_state_changed(void *_data, enum pw_remote_state old, enum pw_remo
&impl->core_listener,
&core_events, impl);
impl->registry_proxy = pw_core_proxy_get_registry(impl->core_proxy,
PW_TYPE_INTERFACE_Registry,
PW_VERSION_REGISTRY, 0);
pw_registry_proxy_add_listener(impl->registry_proxy,
&impl->registry_listener,