1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-28 02:30:05 +00:00

Remove message manager lock assert from AudioThumbnail::setDataSource

Digging though the commit history didn't show any reason why this should exist. Reading the code didn't readily indicate any reason it should exist.  It's existence meant I couldn't _cleanly_ make my thumbnails in a separate thread.  So I've been running with the scissors and have removed it from my own copy.

Forum post located at https://forum.juce.com/t/why-does-audiothumbnail-setdatasource-need-the-message-manager-locked/34023
This commit is contained in:
Ricky Curtice 2019-06-26 10:48:18 -07:00 committed by GitHub
parent 375f11d91b
commit ba03eb3fd1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -642,8 +642,6 @@ void AudioThumbnail::saveTo (OutputStream& output) const
//==============================================================================
bool AudioThumbnail::setDataSource (LevelDataSource* newSource)
{
JUCE_ASSERT_MESSAGE_MANAGER_IS_LOCKED
numSamplesFinished = 0;
auto wasSuccessful = [&] { return sampleRate > 0 && totalSamples > 0; };