summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Baier <hansfbaier@googlemail.com>2009-01-28 07:52:40 +0000
committerHans Baier <hansfbaier@googlemail.com>2009-01-28 07:52:40 +0000
commitd9416a3a6a69a975bb8f1aae50d218e4f71d2f19 (patch)
tree56c69096ffca968e2f3d7372ff0e0c5a163a25c5
parent8048f0309f83a10e35deffa54dbfd2fd742af78a (diff)
* Fixed bug: Discrete control lists are generally not played back
git-svn-id: svn://localhost/ardour2/branches/3.0@4454 d708f5d6-7413-0410-9779-e7cbd77b26cf
-rw-r--r--libs/evoral/src/ControlList.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/libs/evoral/src/ControlList.cpp b/libs/evoral/src/ControlList.cpp
index b54e2373f8..b8388f3753 100644
--- a/libs/evoral/src/ControlList.cpp
+++ b/libs/evoral/src/ControlList.cpp
@@ -975,7 +975,7 @@ ControlList::rt_safe_earliest_event_discrete_unlocked (double start, double end,
const bool past_start = (inclusive ? first->when >= start : first->when > start);
/* Earliest points is in range, return it */
- if (past_start >= start && first->when < end) {
+ if (past_start && first->when < end) {
x = first->when;
y = first->value;
@@ -987,17 +987,14 @@ ControlList::rt_safe_earliest_event_discrete_unlocked (double start, double end,
assert(x >= start);
assert(x < end);
- cerr << "returned something" << endl;
return true;
} else {
- cerr << "not between start and end" << endl;
return false;
}
/* No points in range */
} else {
- cerr << "no points in range" << endl;
return false;
}
}