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

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

View file

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