1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Fixed a threading problem in BufferingAudioSource.

This commit is contained in:
Julian Storer 2011-09-11 13:58:11 +01:00
parent 74df644356
commit 54eb263055
6 changed files with 40 additions and 25 deletions

View file

@ -63,7 +63,7 @@ void AudioTransportSource::setSource (PositionableAudioSource* const newSource,
if (source == nullptr)
return;
setSource (0, 0, 0); // deselect and reselect to avoid releasing resources wrongly
setSource (nullptr, 0, nullptr); // deselect and reselect to avoid releasing resources wrongly
}
readAheadBufferSize = readAheadBufferSize_;