summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2015-04-06 21:19:51 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2015-04-06 21:19:51 -0400
commit528f945ba3f30a767be84b10be419177e553f767 (patch)
tree0bf26cffb698016b394c276166841710d89f4c44
parentc8194495521c51db25d2f22003047efb71fc4558 (diff)
fix crash during new session creation when sync-to-JACK is enabled as a preference
-rw-r--r--libs/ardour/ardour/session.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/ardour/ardour/session.h b/libs/ardour/ardour/session.h
index 942b75fbef..9967c9c758 100644
--- a/libs/ardour/ardour/session.h
+++ b/libs/ardour/ardour/session.h
@@ -553,7 +553,7 @@ class LIBARDOUR_API Session : public PBD::StatefulDestructible, public PBD::Scop
static PBD::Signal1<void, framepos_t> EndTimeChanged;
void request_sync_source (Slave*);
- bool synced_to_engine() const { return config.get_external_sync() && Config->get_sync_source() == Engine; }
+ bool synced_to_engine() const { return _slave && config.get_external_sync() && Config->get_sync_source() == Engine; }
double transport_speed() const { return _transport_speed; }
bool transport_stopped() const { return _transport_speed == 0.0f; }