summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Schleef <ds@schleef.org>2002-09-20 21:41:11 +0000
committerDavid Schleef <ds@schleef.org>2002-09-20 21:41:11 +0000
commit75550f553dcb3e9aaa76d4c529c5fcdb1dd7f865 (patch)
tree597b5d08a0dc62a2a4f2aea647ed59c1cd222578
parentb9c66834037ed3d327ebb529e04a9a1da7cd7fc1 (diff)
Merge 1.24->1.25 patch. Fixes g_param warnings about default parameters being out of range.
Original commit message from CVS: Merge 1.24->1.25 patch. Fixes g_param warnings about default parameters being out of range.
-rw-r--r--ext/ladspa/gstladspa.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/ladspa/gstladspa.c b/ext/ladspa/gstladspa.c
index cd9119a74..452835761 100644
--- a/ext/ladspa/gstladspa.c
+++ b/ext/ladspa/gstladspa.c
@@ -282,6 +282,10 @@ gst_ladspa_class_init (GstLADSPAClass *klass)
klass->control_info[i].def = 440.0;
}
#endif /* LADSPA_IS_HINT_HAS_DEFAULT */
+ if(klass->control_info[i].def < klass->control_info[i].lowerbound)
+ klass->control_info[i].def = klass->control_info[i].lowerbound;
+ if(klass->control_info[i].def > klass->control_info[i].upperbound)
+ klass->control_info[i].def = klass->control_info[i].upperbound;
if (LADSPA_IS_PORT_INPUT(desc->PortDescriptors[current_portnum])) {
argperms = G_PARAM_READWRITE;