ladishd: when loading project, search (a2j) the jack client before creating one

This commit is contained in:
Nedko Arnaudov 2010-11-08 02:08:52 +02:00
parent 6c2201b933
commit bea7c694e0
1 changed files with 7 additions and 0 deletions

View File

@ -160,6 +160,13 @@ static void callback_elstart(void * data, const char * el, const char ** attr)
log_info("jack client \"%s\" with uuid %s", name, uuid_str);
context_ptr->client = ladish_graph_find_client_by_uuid(ladish_studio_get_jack_graph(), uuid);
if (context_ptr->client != NULL)
{
log_info("Found existing client");
return;
}
if (!ladish_client_create(uuid, &context_ptr->client))
{
log_error("ladish_client_create() failed.");