proxy: use 0 as the core resource

Make it possible to insert and object with a fixed id for the proxy.
Make it possible to choose an id for a resource.
This commit is contained in:
Wim Taymans 2017-03-14 16:15:09 +01:00
parent 3e472c2dae
commit ff659ad1a7
3 changed files with 24 additions and 8 deletions

View file

@ -597,7 +597,7 @@ pinos_context_connect_fd (PinosContext *context,
impl);
context->core_proxy = pinos_proxy_new (context,
SPA_ID_INVALID,
0,
context->uri.core);
if (context->core_proxy == NULL)
goto no_proxy;