remote: use 0 for pw_proxy_new() user_data_size argument

pw_proxy_new() expects a size for its user data structure
as the last argument, not a proxy version
This commit is contained in:
George Kiagiadakis 2019-01-29 16:45:53 +02:00 committed by Wim Taymans
parent ba653fccfc
commit 24eeea62e7

View file

@ -283,12 +283,12 @@ static int do_connect(struct pw_remote *remote)
dummy.remote = remote;
remote->core_proxy = (struct pw_core_proxy*)pw_proxy_new(&dummy,
PW_TYPE_INTERFACE_Core, PW_VERSION_CORE);
PW_TYPE_INTERFACE_Core, 0);
if (remote->core_proxy == NULL)
goto no_proxy;
remote->client_proxy = (struct pw_client_proxy*)pw_proxy_new(&dummy,
PW_TYPE_INTERFACE_Client, PW_VERSION_CLIENT);
PW_TYPE_INTERFACE_Client, 0);
if (remote->client_proxy == NULL)
goto clean_core_proxy;