mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-02 12:32:29 +00:00
ladspa: only multiply bounded rate properties by sample rate
We don't want to accidentally multiply G_MAXFLOAT or -GMAXFLOAT with the sample rate.
This commit is contained in:
parent
ffd3e189de
commit
dbb0e71e70
1 changed files with 4 additions and 2 deletions
|
@ -380,8 +380,10 @@ gst_ladspa_object_class_get_param_spec (GstLADSPAClass * ladspa_class,
|
|||
|
||||
if (LADSPA_IS_HINT_SAMPLE_RATE (hintdesc)) {
|
||||
/* FIXME:! (*= ladspa->rate?, *= GST_AUDIO_DEF_RATE?) */
|
||||
lower *= 44100;
|
||||
upper *= 44100;
|
||||
if (LADSPA_IS_HINT_BOUNDED_BELOW (hintdesc))
|
||||
lower *= 44100;
|
||||
if (LADSPA_IS_HINT_BOUNDED_ABOVE (hintdesc))
|
||||
upper *= 44100;
|
||||
}
|
||||
|
||||
if (LADSPA_IS_HINT_INTEGER (hintdesc)) {
|
||||
|
|
Loading…
Reference in a new issue