Fix for [#35230] CPU freeze at playback after cutting/deleting/duplicating audio strip

This commit is contained in:
Joerg Mueller 2013-06-20 07:46:40 +00:00
parent 972c01ac0c
commit e5944d23ed
2 changed files with 3 additions and 3 deletions

@ -161,7 +161,7 @@ boost::shared_ptr<AUD_SequencerEntry> AUD_Sequencer::add(boost::shared_ptr<AUD_I
boost::shared_ptr<AUD_SequencerEntry> entry = boost::shared_ptr<AUD_SequencerEntry>(new AUD_SequencerEntry(sound, begin, end, skip, m_id++));
m_entries.push_front(entry);
m_entries.push_back(entry);
m_entry_status++;
return entry;

@ -112,7 +112,7 @@ void AUD_SequencerReader::read(int& length, bool& eos, sample_t* buffer)
try
{
handle = boost::shared_ptr<AUD_SequencerHandle>(new AUD_SequencerHandle(entry, m_device));
handles.push_front(handle);
handles.push_back(handle);
}
catch(AUD_Exception&)
{
@ -143,7 +143,7 @@ void AUD_SequencerReader::read(int& length, bool& eos, sample_t* buffer)
try
{
handle = boost::shared_ptr<AUD_SequencerHandle>(new AUD_SequencerHandle(*eit, m_device));
handles.push_front(handle);
handles.push_back(handle);
}
catch(AUD_Exception&)
{