* second part of the last fix
authorHans Baier <hansfbaier@googlemail.com>
Sat, 14 Feb 2009 07:21:01 +0000 (07:21 +0000)
committerHans Baier <hansfbaier@googlemail.com>
Sat, 14 Feb 2009 07:21:01 +0000 (07:21 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@4549 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/ardour/midi_clock_slave.cc

index f13c81ef59eb504656eedc6a2227135d22f1fb01..6bd6076948dcf2072b9922cb3ceb1e2a27d7b825 100644 (file)
@@ -248,9 +248,10 @@ MIDIClock_Slave::stop (Parser& parser, nframes_t timestamp)
                
                // find out the last MIDI beat: go back #midi_clocks mod 6
                // and lets hope the tempo didnt change in those last 6 beats :)
-               stop_position -= (midi_clock_count % 6) * one_ppqn_in_frames; 
+               stop_position -= (midi_clock_count % 6) * one_ppqn_in_frames;
                
                session.request_locate(stop_position, false);
+               should_be_position = stop_position;
                last_timestamp = 0;
        }
 }