DummyBackend: fix midi event mux+sorting
[ardour.git] / libs / ardour / graph.cc
index 72017d1b36472efb883b85945f34d337257ea726..3e878533193afcada7f3d5d9f0bcb3958c890c2d 100644 (file)
@@ -32,8 +32,6 @@
 #include "ardour/process_thread.h"
 #include "ardour/audioengine.h"
 
-#include <jack/thread.h>
-
 #include "i18n.h"
 
 using namespace ARDOUR;
@@ -224,7 +222,7 @@ Graph::trigger (GraphNode* n)
 void
 Graph::dec_ref()
 {
-        if (g_atomic_int_dec_and_test (&_finished_refcount)) {
+        if (g_atomic_int_dec_and_test (const_cast<gint*> (&_finished_refcount))) {
 
                /* We have run all the nodes that are at the `output' end of
                   the graph, so there is nothing more to do this time around.