core: handle client bind errors

When a client attempts to bind to an unexisting global, don't error
but instead let the client know the object was removed.
This commit is contained in:
Wim Taymans 2017-03-09 15:52:19 +01:00
parent 7ad02f553a
commit 1e600713a5
6 changed files with 14 additions and 4 deletions

View file

@ -760,6 +760,7 @@ link_bind_func (PinosGlobal *global,
return SPA_RESULT_OK;
no_mem:
pinos_log_error ("can't create link resource");
pinos_core_notify_error (client->core_resource,
client->core_resource->id,
SPA_RESULT_NO_MEMORY,