From f04974aa6cb93de18be6a48c40e8ce15d738aaf6 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 5 Mar 2020 08:38:31 -0700 Subject: [PATCH] continue with code simplification and add comment given 4a40ff9e53 --- libs/ardour/session_transport.cc | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/libs/ardour/session_transport.cc b/libs/ardour/session_transport.cc index b32baba966..065b2e0c7b 100644 --- a/libs/ardour/session_transport.cc +++ b/libs/ardour/session_transport.cc @@ -97,14 +97,9 @@ Session::realtime_stop (bool abort, bool clear_state) ENSURE_PROCESS_THREAD; DEBUG_TRACE (DEBUG::Transport, string_compose ("realtime stop @ %1 speed = %2\n", _transport_sample, _transport_speed)); - PostTransportWork todo = PostTransportWork (0); - - if (_transport_speed < 0.0f) { - todo = (PostTransportWork (todo | PostTransportStop)); - } else { - todo = PostTransportWork (todo | PostTransportStop); - } + PostTransportWork todo = PostTransportStop; + /* this resets the speed we will start at if just requested to roll again */ _default_transport_speed = 1.0; /* call routes */