mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-16 08:34:10 +02:00
Don't let the catch-all block in Effect intercept the new exception
This commit is contained in:
parent
87e75176c5
commit
576d3e3013
@ -39,6 +39,7 @@ greater use in future.
|
||||
|
||||
#include "audacity/ConfigInterface.h"
|
||||
|
||||
#include "../AudacityException.h"
|
||||
#include "../AudioIO.h"
|
||||
#include "../LabelTrack.h"
|
||||
#include "../Mix.h"
|
||||
@ -1612,8 +1613,18 @@ bool Effect::ProcessTrack(int count,
|
||||
{
|
||||
processed = ProcessBlock(mInBufPos.get(), mOutBufPos.get(), curBlockSize);
|
||||
}
|
||||
catch( const AudacityException &e )
|
||||
{
|
||||
// PRL: Bug 437:
|
||||
// Pass this along to our application-level handler
|
||||
throw;
|
||||
}
|
||||
catch(...)
|
||||
{
|
||||
// PRL:
|
||||
// Exceptions for other reasons, maybe in third-party code...
|
||||
// Continue treating them as we used to, but I wonder if these
|
||||
// should now be treated the same way.
|
||||
return false;
|
||||
}
|
||||
wxASSERT(processed == curBlockSize);
|
||||
|
Loading…
x
Reference in New Issue
Block a user