summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2010-10-27 21:18:32 +0000
committerCarl Hetherington <carl@carlh.net>2010-10-27 21:18:32 +0000
commitba6d6895f7802e537fd198c17ff3b088086e76f0 (patch)
tree44904d1b83c4970dbddf5edc1ac4bda9779818ab
parent163dab0d5dcff76c5173b737b49e82c9af279c9f (diff)
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
-rw-r--r--libs/midi++2/port.cc2
1 files changed, 2 insertions, 0 deletions
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;