mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
lv2: reduce log spam for property bounds
Only complain about bad bounds, if the plugin actually set those. Otherwise silently adjust our defaults.
This commit is contained in:
parent
e2184b2fc4
commit
5aee046876
1 changed files with 8 additions and 4 deletions
|
@ -364,14 +364,18 @@ gst_lv2_class_get_param_spec (GstLV2Class * klass, GObjectClass * object_class,
|
|||
lilv_node_free (lv2max);
|
||||
|
||||
if (def < lower) {
|
||||
GST_WARNING ("%s has lower bound %f > default %f",
|
||||
lilv_node_as_string (lilv_plugin_get_uri (lv2plugin)), lower, def);
|
||||
if (lv2def && lv2min) {
|
||||
GST_WARNING ("%s has lower bound %f > default %f",
|
||||
lilv_node_as_string (lilv_plugin_get_uri (lv2plugin)), lower, def);
|
||||
}
|
||||
lower = def;
|
||||
}
|
||||
|
||||
if (def > upper) {
|
||||
GST_WARNING ("%s has upper bound %f < default %f",
|
||||
lilv_node_as_string (lilv_plugin_get_uri (lv2plugin)), upper, def);
|
||||
if (lv2def && lv2max) {
|
||||
GST_WARNING ("%s has upper bound %f < default %f",
|
||||
lilv_node_as_string (lilv_plugin_get_uri (lv2plugin)), upper, def);
|
||||
}
|
||||
upper = def;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue