Emit Locate() in ::locate() even if we are not synced_to_engine()

This reverts 05c77db773 (revert necessary due to 4637c49838)

Since 4637c49838 we no longer emit Located() in ::backend_sync_callback().
Therefore we must emit Located() in ::locate() even if we are
synced_to_engine().

Otherwise the playhead is not updated when synced_to_engine() in some
circumstances.
This commit is contained in:
Johannes Mueller 2020-04-02 18:39:46 +02:00
parent 849bce6e4d
commit 06dee15a18

View File

@ -362,9 +362,8 @@ Session::locate (samplepos_t target_sample, bool with_roll, bool with_flush, boo
}
_last_roll_location = _last_roll_or_reversal_location = _transport_sample;
if (!synced_to_engine () || _transport_sample == _engine.transport_sample ()) {
Located (); /* EMIT SIGNAL */
}
Located (); /* EMIT SIGNAL */
}
void