Fix typos in AU channel-count calc
authorRobin Gareus <robin@gareus.org>
Tue, 15 Oct 2019 13:24:50 +0000 (15:24 +0200)
committerRobin Gareus <robin@gareus.org>
Tue, 15 Oct 2019 13:24:50 +0000 (15:24 +0200)
libs/ardour/audio_unit.cc

index bf9ea888ab9ef975c9d6148007505d6c03fd100a..6cda5acd6bacb13ab36619943ed41815e08d9b5c 100644 (file)
@@ -2918,7 +2918,7 @@ AUPluginInfo::discover_by_description (PluginInfoList& plugs, CAComponentDescrip
 
                const int rv = cached_io_configuration (info->unique_id, info->version, cacomp, info->cache, info->name);
 
-               info.max_outputs = 0;
+               info->max_outputs = 0;
 
                if (rv == 0) {
                        /* here we have to map apple's wildcard system to a simple pair
@@ -2939,13 +2939,13 @@ AUPluginInfo::discover_by_description (PluginInfoList& plugs, CAComponentDescrip
                                int32_t possible_out = i->second;
                                if (possible_out < 0) {
                                        continue;
-                               } else if (possible_out > info.max_outputs) {
-                                       info.max_outputs = possible_out;
+                               } else if (possible_out > info->max_outputs) {
+                                       info->max_outputs = possible_out;
                                }
                        }
 
                        int32_t possible_in = ioc.front().first;
-                       int32_t possible_out = ioc.font().second;
+                       int32_t possible_out = ioc.front().second;
 
                        if (possible_in > 0) {
                                info->n_inputs.set (DataType::AUDIO, possible_in);