diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2019-03-27 09:58:12 -0700 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2019-09-17 18:04:03 -0600 |
commit | b648b3a4b40631a7f4f25a75f57c9be0761fc2f6 (patch) | |
tree | 31be8814918320abdb087aa5adc462b9f8c9c3e7 /libs | |
parent | 192a8b7ec021729c0bbb9aadfa8fe8203f0f51e6 (diff) |
minor tweaks to use initialization rather than assignment
Diffstat (limited to 'libs')
-rw-r--r-- | libs/ardour/session_transport.cc | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/libs/ardour/session_transport.cc b/libs/ardour/session_transport.cc index 40a0b7e358..0c424704bf 100644 --- a/libs/ardour/session_transport.cc +++ b/libs/ardour/session_transport.cc @@ -1169,19 +1169,15 @@ Session::butler_transport_work () { /* Note: this function executes in the butler thread context */ -restart: - bool finished; - PostTransportWork ptw; + restart: boost::shared_ptr<RouteList> r = routes.reader (); - uint64_t before; - int on_entry = g_atomic_int_get (&_butler->should_do_transport_work); - finished = true; - ptw = post_transport_work(); + bool finished = true; + PostTransportWork ptw = post_transport_work(); + uint64_t before; DEBUG_TRACE (DEBUG::Transport, string_compose ("Butler transport work, todo = %1 at %2\n", enum_2_string (ptw), (before = g_get_monotonic_time()))); - if (ptw & PostTransportLocate) { if (get_play_loop() && !Config->get_seamless_loop()) { |