From 6cf19dac188ed70a6c2dcf138697cf186460fcde Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Fri, 16 Jul 2021 21:14:00 +0200 Subject: [PATCH] Fix crash on xrun-reset when recording Since 80c11a763a4 the GUI is notified when the xrun counter is reset (previously the rec-ui xrun counter never returned to zero). However when create-xrun-marker is enabled ARDOUR_UI::xrun_handler tried to create a marker at -1 which causes various issues. --- gtk2_ardour/ardour_ui_engine.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk2_ardour/ardour_ui_engine.cc b/gtk2_ardour/ardour_ui_engine.cc index 2d63542109..9b2e46373c 100644 --- a/gtk2_ardour/ardour_ui_engine.cc +++ b/gtk2_ardour/ardour_ui_engine.cc @@ -130,7 +130,7 @@ ARDOUR_UI::halt_on_xrun_message () void ARDOUR_UI::xrun_handler (samplepos_t where) { - if (!_session) { + if (!_session || where < 0) { return; }