[SCM] calf/master: + JACK host: fix handling of NULL result of the MIDI port query

js at users.alioth.debian.org js at users.alioth.debian.org
Tue May 7 15:39:30 UTC 2013


The following commit has been merged in the master branch:
commit 30ef01ddca0c939015e040e1da8cbe3205bd1ebe
Author: Krzysztof Foltman <wdev at foltman.com>
Date:   Tue Apr 21 23:31:00 2009 +0100

    + JACK host: fix handling of NULL result of the MIDI port query

diff --git a/src/jackhost.cpp b/src/jackhost.cpp
index 00db5a1..7cbcaef 100644
--- a/src/jackhost.cpp
+++ b/src/jackhost.cpp
@@ -470,7 +470,7 @@ void host_session::connect()
         else
         if (autoconnect_midi_index != -1) {
             const char **ports = client.get_ports("(system|alsa_pcm):.*", JACK_DEFAULT_MIDI_TYPE, JackPortIsOutput);
-            for (int j = 0; ports[j]; j++)
+            for (int j = 0; ports && ports[j]; j++)
             {
                 if (j + 1 == autoconnect_midi_index) {
                     for (unsigned int i = 0; i < plugins.size(); i++)

-- 
calf audio plugins packaging



More information about the pkg-multimedia-commits mailing list