summaryrefslogtreecommitdiff
path: root/libs/pbd/pbd
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2019-09-05 14:04:20 -0600
committerPaul Davis <paul@linuxaudiosystems.com>2019-09-17 17:59:23 -0600
commitf52781b46b503d8d12d66bf0582bdb5c17d4b925 (patch)
treee92d25de263e68874e4b91f8aeb04b14f98fed87 /libs/pbd/pbd
parentcbb7f6d863a24aa3caae4751ed742a3cc4f3691d (diff)
fix thinko when testing for internal seek with negative distance
Diffstat (limited to 'libs/pbd/pbd')
-rw-r--r--libs/pbd/pbd/playback_buffer.h2
1 files changed, 1 insertions, 1 deletions
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;