mirror of
https://github.com/cookiengineer/audacity
synced 2025-07-24 00:18:07 +02:00
Make sure the effect ID is valid (non-blank)
This commit is contained in:
parent
3391203e93
commit
07f965a057
@ -675,6 +675,12 @@ int EffectManager::GetRealtimeLatency()
|
|||||||
|
|
||||||
Effect *EffectManager::GetEffect(const PluginID & ID)
|
Effect *EffectManager::GetEffect(const PluginID & ID)
|
||||||
{
|
{
|
||||||
|
// Must have a "valid" ID
|
||||||
|
if (ID.IsEmpty())
|
||||||
|
{
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
// TODO: This is temporary and should be redone when all effects are converted
|
// TODO: This is temporary and should be redone when all effects are converted
|
||||||
if (mEffects.find(ID) == mEffects.end())
|
if (mEffects.find(ID) == mEffects.end())
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user