summaryrefslogtreecommitdiff
path: root/libs/ardour/session_transport.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2020-03-05 08:38:31 -0700
committerPaul Davis <paul@linuxaudiosystems.com>2020-03-05 08:38:31 -0700
commitf04974aa6cb93de18be6a48c40e8ce15d738aaf6 (patch)
tree757d99abee8f997057707ab54804b595dd6c9119 /libs/ardour/session_transport.cc
parentabcb092adcae61b148f82abd240282559a286b03 (diff)
continue with code simplification and add comment given 4a40ff9e53
Diffstat (limited to 'libs/ardour/session_transport.cc')
-rw-r--r--libs/ardour/session_transport.cc9
1 files 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 */