diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2014-11-24 09:52:14 +0200 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2014-12-21 11:45:53 -0500 |
commit | 76d42ab644eac81ddecb7cbf8da98f2bc550a9a3 (patch) | |
tree | a89cd083b506bff92e54aea60c30be6bda18cc71 /libs/ardour/ardour/session_event.h | |
parent | d44051ef368457e987c47903cf79c864617943b2 (diff) |
change SessionEvent::Immediate to -1, and ensure that clear_events() uses it rather than a hard-coded value
This fixes a design error of using zero as the flag for an "Immediate" event's action frame. Zero
is a perfectly legitimate action frame for an event (e.g. a Skip event), and using zero was causing
skip events with action-frame == 0 to be treated as immediate, not scheduled.
Diffstat (limited to 'libs/ardour/ardour/session_event.h')
-rw-r--r-- | libs/ardour/ardour/session_event.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/ardour/ardour/session_event.h b/libs/ardour/ardour/session_event.h index 510dac01db..3f7fc6c092 100644 --- a/libs/ardour/ardour/session_event.h +++ b/libs/ardour/ardour/session_event.h @@ -141,7 +141,7 @@ public: void* operator new (size_t); void operator delete (void *ptr, size_t /*size*/); - static const framepos_t Immediate = 0; + static const framepos_t Immediate = -1; static void create_per_thread_pool (const std::string& n, uint32_t nitems); static void init_event_pool (); |