From ba6d6895f7802e537fd198c17ff3b088086e76f0 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 27 Oct 2010 21:18:32 +0000 Subject: [PATCH] assert() which catches one source of crashes on startup when Ardour starts JACK. git-svn-id: svn://localhost/ardour2/branches/3.0@7926 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/midi++2/port.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libs/midi++2/port.cc b/libs/midi++2/port.cc index fa052ef33c..600886a94d 100644 --- a/libs/midi++2/port.cc +++ b/libs/midi++2/port.cc @@ -173,6 +173,8 @@ Port::clock (timestamp_t timestamp) void Port::cycle_start (nframes_t nframes) { + assert (_jack_port); + _currently_in_cycle = true; _nframes_this_cycle = nframes;