Report correct time instead of old time when locating as Jack transport master.
authorDavid Robillard <d@drobilla.net>
Sun, 8 Jul 2012 03:40:15 +0000 (03:40 +0000)
committerDavid Robillard <d@drobilla.net>
Sun, 8 Jul 2012 03:40:15 +0000 (03:40 +0000)
commite2c26e1b99ac073180eb22b8c06cafaa658cbda8
treed5f64bcf51f1f4da2c3ea0b5024b3042ad713482
parent39b42e376611cfe42e230640a404dce26266e8c9
Report correct time instead of old time when locating as Jack transport 

I encountered this today writing a transport slave, but it seems to be the same
problem as issue #743 from 8 years ago.  The issue is easier to see with a
transport slave client that prints any transport change whatsoever, for example
if the current location is some point well into the session and rewind to start
is pressed, Ardour reports the old position, not zero.  With this change, it
reports zero as expected.

See comment about why this was happening.  If locating here is evil for some
reason, then some other way of making jack_timebase_callback report the target
position is required.  Contrary to what the old comment below this change
suggests, follow_slave() does not update _transport_frame in time.

git-svn-id: svn://localhost/ardour2/branches/3.0@12993 d708f5d6-7413-0410-9779-e7cbd77b26cf
libs/ardour/session_transport.cc