lv2: tweak enum logging

Log more details when we find a bad scalepoint and downgrade the logging of the
good enum valzes.
This commit is contained in:
Stefan Sauer 2016-05-15 23:27:22 -07:00
parent 04a957c9b8
commit 63afc05c7f

View file

@ -421,7 +421,8 @@ gst_lv2_class_get_param_spec (GstLV2Class * klass, GObjectClass * object_class,
/* check if value can be safely converted to int */
if (v != (gint) v) {
GST_DEBUG ("non integer scale point %lf, %s", v, l);
GST_INFO ("%s:%s non integer scale point %lf, %s",
lilv_node_as_string (lilv_plugin_get_uri (lv2plugin)), name, v, l);
break;
}
if (v == def) {
@ -429,7 +430,7 @@ gst_lv2_class_get_param_spec (GstLV2Class * klass, GObjectClass * object_class,
}
enums[j].value = (gint) v;
enums[j].value_nick = enums[j].value_name = l;
GST_DEBUG ("%s:%s enum: %lf, %s",
GST_LOG ("%s:%s enum: %lf, %s",
lilv_node_as_string (lilv_plugin_get_uri (lv2plugin)), name, v, l);
j++;
}