From 799a3d7f6f1ac5a00360fb051937c310254a6d3d Mon Sep 17 00:00:00 2001 From: Nedko Arnaudov Date: Thu, 15 Sep 2011 12:58:30 +0300 Subject: [PATCH] improved error message for snd_seq_connect_to() failures --- port.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/port.c b/port.c index 2698fd7..3a7c41e 100644 --- a/port.c +++ b/port.c @@ -220,9 +220,18 @@ a2j_port_create( } if (type == A2J_PORT_CAPTURE) + { err = a2j_alsa_connect_from(self, port->remote.client, port->remote.port); + } else + { err = snd_seq_connect_to(self->seq, self->port_id, port->remote.client, port->remote.port); + if (err != 0) + { + a2j_error("snd_seq_connect_to() for %d:%d failed with error %d", (int)port->remote.client, (int)port->remote.port, err); + } + } + if (err) { a2j_info("port skipped: %s", port->name); -- 2.11.4.GIT