Somewhat uncertain fix to playhead misbehaviour in rewind.
[ardour.git] / libs / ardour / plugin_manager.cc
index f4d638e3bc87ed77e4b8c0aea5a855e2307eda50..8227d5869f2f4da5b315435b58a5cee665122e89 100644 (file)
@@ -21,7 +21,6 @@
 #include "libardour-config.h"
 #endif
 
-#define __STDC_FORMAT_MACROS 1
 #include <stdint.h>
 
 #include <sys/types.h>
@@ -145,7 +144,9 @@ PluginManager::PluginManager ()
 
 PluginManager::~PluginManager()
 {
+#ifdef HAVE_SLV2
        delete _lv2_world;
+#endif
 }
 
 
@@ -199,7 +200,7 @@ PluginManager::ladspa_refresh ()
                                case ':' :
                                case '\0':
                                        continue;
-                               case '/' :
+                               case G_DIR_SEPARATOR :
                                        if (ladspa_path[found + strlen(standard_paths[i]) + 1] == ':' ||
                                            ladspa_path[found + strlen(standard_paths[i]) + 1] == '\0') {
                                                continue;
@@ -556,6 +557,7 @@ PluginManager::vst_discover (string path)
        info->index = 0;
        info->n_inputs.set_audio (finfo->numInputs);
        info->n_outputs.set_audio (finfo->numOutputs);
+       info->n_inputs.set_midi (finfo->wantMidi ? 1 : 0);
        info->type = ARDOUR::VST;
 
        _vst_plugin_info->push_back (info);