Fixup label range values.

A number of EffectValues of type label had invalid ranges. Make
them less invalid.

Also add SYNTH_TALK id's to xml settings.

Make format_ipv warn instead of crashing if an xml setting is not
found.
This commit is contained in:
Tim LaBerge
2012-04-06 10:06:12 -07:00
parent 3002d2256e
commit 88819a795b
2 changed files with 32 additions and 16 deletions

10
gdigi.c
View File

@@ -180,7 +180,15 @@ format_ipv (guint id, guint pos, guint val)
GString *buf = g_string_sized_new(1);
GString *vec_buf = g_string_sized_new(1);
XmlSettings *xml = get_xml_settings(id, pos);
GString *val_buf = format_value(xml, val);
GString *val_buf;
if (!xml) {
g_warning("Failed to find xml settings for position %d id %d.",
id, pos);
g_string_printf(buf, "%s", "error");
return buf;
}
val_buf = format_value(xml, val);
g_string_printf(vec_buf, "(%d, %d, %d)", pos, id, val);
g_string_printf(buf, "%-16s %s: %s: %s",