projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix default gtk background color
[ardour.git]
/
gtk2_ardour
/
linux_vst_gui_support.cc
diff --git
a/gtk2_ardour/linux_vst_gui_support.cc
b/gtk2_ardour/linux_vst_gui_support.cc
index 5eaf485c7569587ff45bce90c1d9d70828e33282..e438ed6f926f98c83a28d6c96b199b3aa7b38e64 100644
(file)
--- a/
gtk2_ardour/linux_vst_gui_support.cc
+++ b/
gtk2_ardour/linux_vst_gui_support.cc
@@
-22,11
+22,10
@@
/** VSTFX - An engine based on FST for handling linuxVST plugins **/
/******************************************************************/
/** VSTFX - An engine based on FST for handling linuxVST plugins **/
/******************************************************************/
-/** EDITOR tab stops at 4 **/
-
#include <stdlib.h>
#include <stdio.h>
#include <libgen.h>
#include <stdlib.h>
#include <stdio.h>
#include <libgen.h>
+#include <assert.h>
#include <pthread.h>
#include <signal.h>
#include <pthread.h>
#include <signal.h>
@@
-772,6
+771,10
@@
vstfx_event_loop_remove_plugin (VSTState* vstfx)
}
}
}
}
+ // if this function is called, there must be
+ // at least one plugin in the linked list
+ assert(vstfx_first);
+
if (vstfx_first == vstfx) {
vstfx_first = vstfx_first->next;
}
if (vstfx_first == vstfx) {
vstfx_first = vstfx_first->next;
}