diff options
author | David Robillard <d@drobilla.net> | 2012-04-21 23:48:45 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-04-21 23:48:45 +0000 |
commit | 353630d23ea6783317ca73435774b7310d0585f8 (patch) | |
tree | 1c6bb152c083800c4468a2774b784ad2962cfd59 | |
parent | 70dbec51c54f69de35309e3498cda9ba0ad2cfaa (diff) | |
download | patchage-353630d23ea6783317ca73435774b7310d0585f8.tar.gz patchage-353630d23ea6783317ca73435774b7310d0585f8.tar.bz2 patchage-353630d23ea6783317ca73435774b7310d0585f8.zip |
Fix ALSA.
git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@4224 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r-- | src/AlsaDriver.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/AlsaDriver.cpp b/src/AlsaDriver.cpp index af35a46..278a6bc 100644 --- a/src/AlsaDriver.cpp +++ b/src/AlsaDriver.cpp @@ -158,17 +158,17 @@ AlsaDriver::refresh() snd_seq_query_subscribe_set_index(subsinfo, 0); while (!snd_seq_query_port_subscribers(_seq, subsinfo)) { const snd_seq_addr_t* addr2 = snd_seq_query_subscribe_get_addr(subsinfo); - if (!addr2) - continue; - - PatchagePort* port2 = _app->canvas()->find_port(PortID(*addr2, true)); - if (port2 && !_app->canvas()->get_edge(port, port2)) { - _app->canvas()->make_connection( - port, port2, port->get_fill_color() + 0x22222200); - - snd_seq_query_subscribe_set_index( - subsinfo, snd_seq_query_subscribe_get_index(subsinfo) + 1); + if (addr2) { + const PortID id2(*addr2, true); + PatchagePort* port2 = _app->canvas()->find_port(id2); + if (port2 && !_app->canvas()->get_edge(port, port2)) { + _app->canvas()->make_connection( + port, port2, port->get_fill_color() + 0x22222200); + } } + + snd_seq_query_subscribe_set_index( + subsinfo, snd_seq_query_subscribe_get_index(subsinfo) + 1); } } } |