diff options
Diffstat (limited to 'libs/ardour/session.cc')
-rw-r--r-- | libs/ardour/session.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libs/ardour/session.cc b/libs/ardour/session.cc index e0221b53cc..567c16d142 100644 --- a/libs/ardour/session.cc +++ b/libs/ardour/session.cc @@ -4135,7 +4135,9 @@ Session::write_one_audio_track (AudioTrack& track, nframes_t start, nframes_t en // any bigger than this seems to cause stack overflows in called functions const nframes_t chunk_size = (128 * 1024)/4; - g_atomic_int_set (&processing_prohibited, 1); + // block all process callback handling + + block_processing (); /* call tree *MUST* hold route_lock */ @@ -4270,7 +4272,7 @@ Session::write_one_audio_track (AudioTrack& track, nframes_t start, nframes_t en free (*i); } - g_atomic_int_set (&processing_prohibited, 0); + unblock_processing (); itt.done = true; |