diff options
author | Robin Gareus <robin@gareus.org> | 2016-11-14 21:04:01 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-11-14 21:06:18 +0100 |
commit | 8e3b6c9ac6b4d0e167ab116d197d32b0f8202e8b (patch) | |
tree | 94c6efafaecf1154f0aca72bb96fdb0ed110540a /libs/ardour/mac_vst_support.cc | |
parent | 48c470d51dbc3345b647904922cafc7cf51d20f4 (diff) |
consolidate VSTState initialization
Diffstat (limited to 'libs/ardour/mac_vst_support.cc')
-rw-r--r-- | libs/ardour/mac_vst_support.cc | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/libs/ardour/mac_vst_support.cc b/libs/ardour/mac_vst_support.cc index 42eb3f70e5..3b968c28d8 100644 --- a/libs/ardour/mac_vst_support.cc +++ b/libs/ardour/mac_vst_support.cc @@ -80,25 +80,7 @@ static VSTState * mac_vst_new () { VSTState* mac_vst = (VSTState *) calloc (1, sizeof (VSTState)); - - /*Mutexes*/ - pthread_mutex_init (&mac_vst->lock, 0); - pthread_cond_init (&mac_vst->window_status_change, 0); // XXX unused - pthread_cond_init (&mac_vst->plugin_dispatcher_called, 0); // XXX unused - pthread_cond_init (&mac_vst->window_created, 0); // XXX unused - - /*Safe values*/ - mac_vst->want_program = -1; - mac_vst->want_chunk = 0; - mac_vst->n_pending_keys = 0; - mac_vst->has_editor = 0; - mac_vst->program_set_without_editor = 0; - mac_vst->linux_window = 0; - mac_vst->linux_plugin_ui_window = 0; - mac_vst->eventProc = 0; - mac_vst->extra_data = 0; - mac_vst->want_resize = 0; - + mac_vst0->init(); return mac_vst; } |