From dc338b7e93ae0deaeb3ebe2c3e1b8cd7423aca4a Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Mon, 5 Jun 2023 15:57:47 +0200 Subject: [PATCH] Downgrade error messages that users cannot do anything about Besides, it can happen under normal circumstances that the Editor window, or any other window with clocks (prefs) is visible while no session is loaded. --- gtk2_ardour/audio_clock.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/gtk2_ardour/audio_clock.cc b/gtk2_ardour/audio_clock.cc index 1488bfe259..f060c861e6 100644 --- a/gtk2_ardour/audio_clock.cc +++ b/gtk2_ardour/audio_clock.cc @@ -2113,7 +2113,9 @@ samplepos_t AudioClock::samples_from_bbt_string (timepos_t const & pos, const string& str) const { if (_session == 0) { - error << "AudioClock::samples_from_bbt_string() called with BBT mode but without session!" << endmsg; +#ifndef NDEBUG + cout << "AudioClock::samples_from_bbt_string() called with BBT mode but without session!\n"; +#endif return 0; } @@ -2137,7 +2139,9 @@ samplepos_t AudioClock::sample_duration_from_bbt_string (timepos_t const & pos, const string& str) const { if (_session == 0) { - error << "AudioClock::sample_duration_from_bbt_string() called with BBT mode but without session!" << endmsg; +#ifndef NDEBUG + cout << "AudioClock::sample_duration_from_bbt_string() called with BBT mode but without session!\n"; +#endif return 0; }