From f8efbe7090662cda1d2fb89920c203ba725c9901 Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Fri, 8 Dec 2017 11:27:11 +0100 Subject: Transmit enum value names --- uca-net-camera.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'uca-net-camera.c') diff --git a/uca-net-camera.c b/uca-net-camera.c index f265fc6..03e4996 100644 --- a/uca-net-camera.c +++ b/uca-net-camera.c @@ -491,8 +491,7 @@ deserialize_param_spec (UcaNetMessageProperty *prop) for (guint i = 0; i < prop->spec.genum.n_values; i++) { gchar *name; - name = g_strdup_printf ("%s_%i", prop->name, i); - + name = g_strdup (prop->spec.genum.value_names[i]); values[i].value = prop->spec.genum.values[i]; values[i].value_name = name; values[i].value_nick = name; -- cgit v1.2.3