Fix crash on xrun-reset when recording

Since 80c11a763a 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.
This commit is contained in:
Robin Gareus 2021-07-16 21:14:00 +02:00
parent c3978cefb1
commit 6cf19dac18
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}