From 840b871245cd679d2ebc8292cb6d9a875c092342 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Thu, 30 Apr 2015 22:55:42 +0200 Subject: don’t count silent [x]runs if there’s no session. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libs/ardour/audioengine.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libs/ardour/audioengine.cc') 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; } -- cgit v1.2.3