X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fardour%2Fmac_vst_plugin.cc;h=0b52096e6aff7951ebbdaf87742cca0241a71cdc;hb=79f01bc889d6c928345214eaba9016c6396bcfca;hp=34eea1352ea8bec4535464bf01d85b65b7b372df;hpb=5956e864e7ceb1285e43f376796aaec5230d16e9;p=ardour.git diff --git a/libs/ardour/mac_vst_plugin.cc b/libs/ardour/mac_vst_plugin.cc index 34eea1352e..0b52096e6a 100644 --- a/libs/ardour/mac_vst_plugin.cc +++ b/libs/ardour/mac_vst_plugin.cc @@ -59,7 +59,6 @@ MacVSTPlugin::MacVSTPlugin (const MacVSTPlugin &other) Session::vst_current_loading_id = 0; XMLNode* root = new XMLNode (other.state_node_name ()); - LocaleGuard lg; other.add_state (root); set_state (*root, Stateful::loading_state_version); delete root; @@ -127,7 +126,7 @@ MacVSTPluginInfo::get_presets (bool user_only) const Session::vst_current_loading_id = atoi (unique_id); AEffect* plugin = handle->main_entry (Session::vst_callback); Session::vst_current_loading_id = 0; - plugin->user = NULL; + plugin->ptr1 = NULL; plugin->dispatcher (plugin, effOpen, 0, 0, 0, 0); // :( int const vst_version = plugin->dispatcher (plugin, effGetVstVersion, 0, 0, NULL, 0);