From f52781b46b503d8d12d66bf0582bdb5c17d4b925 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 5 Sep 2019 14:04:20 -0600 Subject: [PATCH] fix thinko when testing for internal seek with negative distance --- libs/pbd/pbd/playback_buffer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/pbd/pbd/playback_buffer.h b/libs/pbd/pbd/playback_buffer.h index ac83c81c7f..932f9224b3 100644 --- a/libs/pbd/pbd/playback_buffer.h +++ b/libs/pbd/pbd/playback_buffer.h @@ -164,7 +164,7 @@ public: return read_space() >= cnt; } else if (cnt < 0) { - return g_atomic_int_get (&reserved) >= cnt; + return g_atomic_int_get (&reserved) >= -cnt; } else { return true;