diff options
author | Robin Gareus <robin@gareus.org> | 2015-04-30 22:55:42 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2015-04-30 22:55:42 +0200 |
commit | 840b871245cd679d2ebc8292cb6d9a875c092342 (patch) | |
tree | e0ba0b9a73541d5f86b99e3083b63ced2743d683 /libs/ardour/audioengine.cc | |
parent | e65e77e3604ac6b1f134420a27354ad31f713acf (diff) |
don’t count silent [x]runs if there’s no session.
Diffstat (limited to 'libs/ardour/audioengine.cc')
-rw-r--r-- | libs/ardour/audioengine.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/ardour/audioengine.cc b/libs/ardour/audioengine.cc index 67f1f15c4d..6176ebd4df 100644 --- a/libs/ardour/audioengine.cc +++ b/libs/ardour/audioengine.cc @@ -205,7 +205,9 @@ AudioEngine::process_callback (pframes_t nframes) if (!tm.locked()) { /* return having done nothing */ - Xrun(); + if (_session) { + Xrun(); + } _processed_frames = next_processed_frames; return 0; } |