diff options
author | David Schleef <ds@schleef.org> | 2002-09-20 21:38:13 +0000 |
---|---|---|
committer | David Schleef <ds@schleef.org> | 2002-09-20 21:38:13 +0000 |
commit | 7fdfef78efc62b3a0cadf3f49e020d52718b012d (patch) | |
tree | fd4df74896a74714638751bf69fee4ea4ebd873c /ext | |
parent | ab8fe8ba0bf82dbb6388b54ec27a8cc3484367e1 (diff) | |
download | gstreamer-plugins-bad-7fdfef78efc62b3a0cadf3f49e020d52718b012d.tar.gz |
Clip defaults of control parameters to range.
Original commit message from CVS:
Clip defaults of control parameters to range.
Diffstat (limited to 'ext')
-rw-r--r-- | ext/ladspa/gstladspa.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/ladspa/gstladspa.c b/ext/ladspa/gstladspa.c index e0d007d5e..fdb19e111 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; |