From 8e3b6c9ac6b4d0e167ab116d197d32b0f8202e8b Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Mon, 14 Nov 2016 21:04:01 +0100 Subject: consolidate VSTState initialization --- libs/ardour/linux_vst_support.cc | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) (limited to 'libs/ardour/linux_vst_support.cc') diff --git a/libs/ardour/linux_vst_support.cc b/libs/ardour/linux_vst_support.cc index 0314fa8d57..92c3243fb8 100644 --- a/libs/ardour/linux_vst_support.cc +++ b/libs/ardour/linux_vst_support.cc @@ -83,27 +83,7 @@ static VSTState * vstfx_new () { VSTState* vstfx = (VSTState *) calloc (1, sizeof (VSTState)); - - /*Mutexes*/ - - pthread_mutex_init (&vstfx->lock, 0); - pthread_cond_init (&vstfx->window_status_change, 0); - pthread_cond_init (&vstfx->plugin_dispatcher_called, 0); - pthread_cond_init (&vstfx->window_created, 0); - - /*Safe values*/ - - vstfx->want_program = -1; - vstfx->want_chunk = 0; - vstfx->n_pending_keys = 0; - vstfx->has_editor = 0; - vstfx->program_set_without_editor = 0; - vstfx->linux_window = 0; - vstfx->linux_plugin_ui_window = 0; - vstfx->eventProc = 0; - vstfx->extra_data = 0; - vstfx->want_resize = 0; - + vstfx->init (); return vstfx; } -- cgit v1.2.3