]> git.0d.be Git - jack_mixer.git/commitdiff
fix crash when midi scale is not set
authorNedko Arnaudov <nedko@arnaudov.name>
Mon, 16 Jan 2012 00:30:58 +0000 (02:30 +0200)
committerNedko Arnaudov <nedko@arnaudov.name>
Mon, 16 Jan 2012 00:30:58 +0000 (02:30 +0200)
jack_mixer.c

index a8703a3a95325e9780697a60d6bee6e0e77a9fce..7b0a8c4889a266d05994da144c0b9c82d1ea682b 100644 (file)
@@ -949,7 +949,7 @@ process(
     for (cc_channel_index=0; cc_channel_index<128; cc_channel_index++)
     {
       channel_ptr = mixer_ptr->midi_cc_map[cc_channel_index];
-      if (channel_ptr == NULL)
+      if (channel_ptr == NULL || channel_ptr->midi_scale == NULL)
       {
         continue;
       }