amend 5dc24971009 ...get the windows version to compile.
authorRobin Gareus <robin@gareus.org>
Tue, 15 Nov 2016 02:21:02 +0000 (03:21 +0100)
committerRobin Gareus <robin@gareus.org>
Tue, 15 Nov 2016 02:21:02 +0000 (03:21 +0100)
eventually vststate_init() needs cleaning up, but not tonight.

libs/fst/vstwin.c

index 53eba86b06ae05e8c9902896d7a02acd8444c382..9ed65ff978436a38f2e67ae1b5aae8a4914379d9 100644 (file)
@@ -220,7 +220,16 @@ static VSTState*
 fst_new (void)
 {
        VSTState* fst = (VSTState*) calloc (1, sizeof (VSTState));
-       vststate_init (fst);
+
+       //vststate_init (fst);
+       pthread_mutex_init (&state->lock, 0);
+       pthread_mutex_init (&state->state_lock, 0);
+       pthread_cond_init (&state->window_status_change, 0);
+       pthread_cond_init (&state->plugin_dispatcher_called, 0);
+       pthread_cond_init (&state->window_created, 0);
+       state->want_program = -1;
+       //
+
 #ifdef PLATFORM_WINDOWS
        fst->voffset = 50;
        fst->hoffset = 0;