amend 070818f
authorRobin Gareus <robin@gareus.org>
Fri, 30 Jan 2015 08:22:59 +0000 (09:22 +0100)
committerRobin Gareus <robin@gareus.org>
Fri, 30 Jan 2015 09:43:56 +0000 (10:43 +0100)
libs/ardour/graph.cc

index cc82fb6c5349a3ff3cde24adc64ec8aaff3b114b..de2ec802df3283eeeadf403deeb759c08869968d 100644 (file)
@@ -485,6 +485,8 @@ Graph::dump (int chain)
 int
 Graph::silent_process_routes (pframes_t nframes, framepos_t start_frame, framepos_t end_frame, bool& need_butler)
 {
+       if (!_threads_active) return 0;
+
         _process_nframes = nframes;
         _process_start_frame = start_frame;
         _process_end_frame = end_frame;
@@ -510,6 +512,8 @@ Graph::process_routes (pframes_t nframes, framepos_t start_frame, framepos_t end
 {
        DEBUG_TRACE (DEBUG::ProcessThreads, string_compose ("graph execution from %1 to %2 = %3\n", start_frame, end_frame, nframes));
 
+       if (!_threads_active) return 0;
+
         _process_nframes = nframes;
         _process_start_frame = start_frame;
         _process_end_frame = end_frame;