diff options
author | Robin Gareus <robin@gareus.org> | 2018-12-06 02:23:09 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2018-12-06 02:24:30 +0100 |
commit | bf874562ef14368a5648215b6dc71936f1c3b33e (patch) | |
tree | 574867416a5c9ea01417229a68226e8d5aa67cd6 /gtk2_ardour/session_dialog.cc | |
parent | 2eae3b5cd19e845a2258fb578548c2b571e46348 (diff) |
Fix inconsistent session-check
under some circumstances, e.g. session-exit it is possible to to have
inconsistent information
ARDOUR_UI::instance()->session_loaded == true
&& ARDOUR_UI::instance()->the_session() == NULL
This lead to a crash on MacOS/X. stopping the engine at exit may destory
an Aggregate Device, leading to DeviceListChanged which in turn updates
the engine-dialog..
else if (ARDOUR_UI::instance()->session_loaded) {
float active_sr = ARDOUR_UI::instance()->the_session()->nominal_sample_rate ();
Diffstat (limited to 'gtk2_ardour/session_dialog.cc')
0 files changed, 0 insertions, 0 deletions