Update of /cvsroot/audacity/audacity-src/src/effects/ladspa
In directory sc8-pr-cvs11.sourceforge.net:/tmp/cvs-serv5368/src/effects/ladspa
Modified Files:
LadspaEffect.cpp
Log Message:
Correct crash when using non-generate type of effects
Index: LadspaEffect.cpp
===================================================================
RCS file: /cvsroot/audacity/audacity-src/src/effects/ladspa/LadspaEffect.cpp,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -d -r1.36 -r1.37
--- LadspaEffect.cpp 1 Oct 2006 09:36:39 -0000 1.36
+++ LadspaEffect.cpp 6 Oct 2006 14:28:53 -0000 1.37
@@ -124,7 +124,6 @@
}
flags = PLUGIN_EFFECT;
-
if (inputs == 0)
flags |= INSERT_EFFECT;
else if (outputs == 0)
@@ -688,7 +687,6 @@
}
}
-
// Now add the length control
if (effect->GetEffectFlags() & INSERT_EFFECT) {
item = new wxStaticText(w, 0, _("Length (seconds)"));
@@ -886,7 +884,11 @@
double LadspaEffectDialog::GetLength()
{
- return Internat::CompatibleToDouble(mSeconds->GetValue());
+ if (effect->GetEffectFlags() & INSERT_EFFECT) {
+ mLength = Internat::CompatibleToDouble(mSeconds->GetValue());
+ }
+
+ return mLength;
}
// Indentation settings for Vim and Emacs and unique identifier for Arch, a
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Audacity-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/audacity-cvs