diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2015-12-10 10:58:03 -0500 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2015-12-16 05:52:47 -0500 |
commit | e302ce8662fb38a791d5c19da14fbce560bcbff2 (patch) | |
tree | de33b978d2fae6542b890ee17c00b06efceef53d /libs | |
parent | a1ef99b9b7a8fe90e574843bcbdeeb466e3bcc4e (diff) |
only use 1/100th gap between markers if transport is stopped, to prevent repeated user action from adding multiple markers when stopped (mackie version)
Diffstat (limited to 'libs')
-rw-r--r-- | libs/surfaces/mackie/mcp_buttons.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/surfaces/mackie/mcp_buttons.cc b/libs/surfaces/mackie/mcp_buttons.cc index 6439004a97..ab428c08d7 100644 --- a/libs/surfaces/mackie/mcp_buttons.cc +++ b/libs/surfaces/mackie/mcp_buttons.cc @@ -409,13 +409,13 @@ MackieControlProtocol::marker_press (Button &) string markername; /* Don't add another mark if one exists within 1/100th of a second of - * the current position. + * the current position and we're not rolling. */ framepos_t where = session->audible_frame(); - if (session->locations()->mark_at (where, session->frame_rate() / 100.0)) { + if (session->transport_stopped() && session->locations()->mark_at (where, session->frame_rate() / 100.0)) { return off; } |