mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
Redo last change by using glib's CLAMP() macro
Original commit message from CVS: Redo last change by using glib's CLAMP() macro
This commit is contained in:
parent
7fdfef78ef
commit
e4e2257667
1 changed files with 3 additions and 4 deletions
|
@ -282,10 +282,9 @@ gst_ladspa_class_init (GstLADSPAClass *klass)
|
||||||
klass->control_info[i].def = 440.0;
|
klass->control_info[i].def = 440.0;
|
||||||
}
|
}
|
||||||
#endif /* LADSPA_IS_HINT_HAS_DEFAULT */
|
#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;
|
klass->control_info[i].def = CLAMP(klass->control_info[i].def,
|
||||||
if(klass->control_info[i].def > klass->control_info[i].upperbound)
|
klass->control_info[i].lowerbound, klass->control_info[i].upperbound)
|
||||||
klass->control_info[i].def = klass->control_info[i].upperbound;
|
|
||||||
|
|
||||||
if (LADSPA_IS_PORT_INPUT(desc->PortDescriptors[current_portnum])) {
|
if (LADSPA_IS_PORT_INPUT(desc->PortDescriptors[current_portnum])) {
|
||||||
argperms = G_PARAM_READWRITE;
|
argperms = G_PARAM_READWRITE;
|
||||||
|
|
Loading…
Reference in a new issue