diff options
Diffstat (limited to 'src/modules/module-metadata/proxy-metadata.c')
-rw-r--r-- | src/modules/module-metadata/proxy-metadata.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/modules/module-metadata/proxy-metadata.c b/src/modules/module-metadata/proxy-metadata.c index ce224796..45989260 100644 --- a/src/modules/module-metadata/proxy-metadata.c +++ b/src/modules/module-metadata/proxy-metadata.c @@ -33,7 +33,6 @@ #include "extensions/metadata.h" struct object_data { - struct pw_remote *remote; struct pw_core *core; struct pw_metadata *object; @@ -55,7 +54,7 @@ static const struct pw_proxy_events proxy_events = { .destroy = object_proxy_destroy, }; -struct pw_proxy *pw_remote_metadata_export(struct pw_remote *remote, +struct pw_proxy *pw_core_proxy_metadata_export(struct pw_core_proxy *core_proxy, uint32_t type, struct pw_properties *props, void *object, size_t user_data_size) { @@ -64,7 +63,7 @@ struct pw_proxy *pw_remote_metadata_export(struct pw_remote *remote, struct pw_proxy *proxy; struct object_data *data; - proxy = pw_core_proxy_create_object(remote->core_proxy, + proxy = pw_core_proxy_create_object(core_proxy, "metadata", PW_TYPE_INTERFACE_Metadata, PW_VERSION_METADATA, @@ -77,9 +76,8 @@ struct pw_proxy *pw_remote_metadata_export(struct pw_remote *remote, data = pw_proxy_get_user_data(proxy); data = SPA_MEMBER(data, user_data_size, struct object_data); - data->remote = remote; data->object = object; - data->core = pw_remote_get_core(remote); + data->core = pw_core_proxy_get_core(core_proxy); data->proxy = proxy; iface = (struct spa_interface*)proxy; |