summaryrefslogtreecommitdiff
path: root/libs/ardour/ltc_slave.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2019-02-04 11:23:56 -0700
committerPaul Davis <paul@linuxaudiosystems.com>2019-02-04 11:23:56 -0700
commit90e5220fa61839c7f7f9c1940181df2001f8d89f (patch)
tree1b389dcc5e4f0e7c1e2d884f68f003d4000c55df /libs/ardour/ltc_slave.cc
parent5b12cc9bada9c63302172c0ba21219563d597ad2 (diff)
reset "current" in LTC transport master when necessary
Diffstat (limited to 'libs/ardour/ltc_slave.cc')
-rw-r--r--libs/ardour/ltc_slave.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/ardour/ltc_slave.cc b/libs/ardour/ltc_slave.cc
index 0af5aa4a03..4f018bb3c5 100644
--- a/libs/ardour/ltc_slave.cc
+++ b/libs/ardour/ltc_slave.cc
@@ -196,10 +196,12 @@ LTC_TransportMaster::resync_latency()
void
LTC_TransportMaster::reset (bool with_position)
{
- DEBUG_TRACE (DEBUG::LTC, "LTC reset()\n");
+ DEBUG_TRACE (DEBUG::LTC, string_compose ("LTC reset() with pos ? %1\n", with_position));
if (with_position) {
current.update (current.position, 0, current.speed);
_current_delta = 0;
+ } else {
+ current.reset ();
}
transport_direction = 0;
sync_lock_broken = false;