From 75550f553dcb3e9aaa76d4c529c5fcdb1dd7f865 Mon Sep 17 00:00:00 2001 From: David Schleef Date: Fri, 20 Sep 2002 21:41:11 +0000 Subject: 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. --- ext/ladspa/gstladspa.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ext') diff --git a/ext/ladspa/gstladspa.c b/ext/ladspa/gstladspa.c index cd9119a7..45283576 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; -- cgit v1.2.1