diff --git a/libs/ardour/ardour/transport_fsm.h b/libs/ardour/ardour/transport_fsm.h index 5a08e621d7..a939b3395b 100644 --- a/libs/ardour/ardour/transport_fsm.h +++ b/libs/ardour/ardour/transport_fsm.h @@ -149,12 +149,7 @@ struct TransportFSM bool waiting_for_butler() const { return _butler_state == WaitingForButler; } bool declick_in_progress() const { return _motion_state == DeclickToLocate || _motion_state == DeclickToStop; } - void enqueue (Event* ev) { - queued_events.push_back (*ev); - if (!processing) { - process_events (); - } - } + void enqueue (Event* ev); private: diff --git a/libs/ardour/transport_fsm.cc b/libs/ardour/transport_fsm.cc index c9ae1153fa..02faafef9b 100644 --- a/libs/ardour/transport_fsm.cc +++ b/libs/ardour/transport_fsm.cc @@ -396,3 +396,14 @@ TransportFSM::transition (ButlerState bs) DEBUG_TRACE (DEBUG::TFSMState, string_compose ("Leave %1, enter %2\n", enum_2_string (_butler_state), enum_2_string (bs))); _butler_state = bs; } + +void +TransportFSM::enqueue (Event* ev) +{ + DEBUG_TRACE (DEBUG::TFSMState, string_compose ("queue tfsm event %1\n", enum_2_string (ev->type))); + PBD::stacktrace (std::cerr, 30); + queued_events.push_back (*ev); + if (!processing) { + process_events (); + } +}