diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2016-04-11 09:47:36 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2016-05-31 15:30:40 -0400 |
commit | 86a9fb2844730cf0b1468b1199a0898f4bb83dc7 (patch) | |
tree | 8a75a19e88fbfbe75183e0759abce7a1f5850a14 /libs | |
parent | cba56ade8763644506995025381bc529ef55857f (diff) |
stop crash caused by missing conditional
Diffstat (limited to 'libs')
-rw-r--r-- | libs/ardour/route.cc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/libs/ardour/route.cc b/libs/ardour/route.cc index 0b8a0b8ff3..29709e3cba 100644 --- a/libs/ardour/route.cc +++ b/libs/ardour/route.cc @@ -738,10 +738,12 @@ Route::passthru_silence (framepos_t start_frame, framepos_t end_frame, pframes_t void Route::set_listen (bool yn) { - if (yn) { - _monitor_send->activate (); - } else { - _monitor_send->deactivate (); + if (_monitor_send) { + if (yn) { + _monitor_send->activate (); + } else { + _monitor_send->deactivate (); + } } } |