merge 3.0P into trunk.
[ardour.git] / libs / ardour / session.cc
index a5443a179773a9dfe2c3790ba56814f07def278c..68244c9812d32988f19d8279b1d3e1f65c43c2f2 100644 (file)
@@ -96,6 +96,7 @@
 #include "ardour/tape_file_matcher.h"
 #include "ardour/tempo.h"
 #include "ardour/utils.h"
+#include "ardour/graph.h"
 
 #include "midi++/jack.h"
 
@@ -144,6 +145,7 @@ Session::Session (AudioEngine &eng,
          _butler (new Butler (*this)),
          _post_transport_work (0),
          _send_timecode_update (false),
+         route_graph (new Graph(*this)),
          routes (new RouteList),
          _total_free_4k_blocks (0),
          _bundles (new BundleList),
@@ -1322,8 +1324,11 @@ Session::resort_routes ()
                shared_ptr<RouteList> r = writer.get_copy ();
                resort_routes_using (r);
                /* writer goes out of scope and forces update */
+                route_graph->rechain( r );
        }
 
+       route_graph->dump(1);
+
 #ifndef NDEBUG
         boost::shared_ptr<RouteList> rl = routes.reader ();
         for (RouteList::iterator i = rl->begin(); i != rl->end(); ++i) {