13
0

Fix disk-reader alignment when creating tracks while playing

This commit is contained in:
Robin Gareus 2020-04-14 16:32:12 +02:00
parent daec036faa
commit 26bb781ecd
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -510,6 +510,14 @@ DiskReader::declick_in_progress () const
void
DiskReader::configuration_changed ()
{
boost::shared_ptr<ChannelList> c = channels.reader ();
if (!c->empty ()) {
ReaderChannelInfo* chaninfo = dynamic_cast<ReaderChannelInfo*> (c->front ());
if (!chaninfo->initialized) {
seek (_session.transport_sample(), true);
return;
}
}
_session.request_overwrite_buffer (_track, LoopDisabled);
}