From e6dcfd248363bf2dbaf65eec50efd7ee4e472d61 Mon Sep 17 00:00:00 2001 From: Burt P Date: Tue, 20 Aug 2019 03:21:31 -0500 Subject: monitors: some DisplayID support Signed-off-by: Burt P --- modules/devices/monitors.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'modules/devices/monitors.c') diff --git a/modules/devices/monitors.c b/modules/devices/monitors.c index 11047ce9..5bffaa4a 100644 --- a/modules/devices/monitors.c +++ b/modules/devices/monitors.c @@ -256,9 +256,11 @@ static gchar *make_edid_section(monitor *m) { if (!sad_list) sad_list = g_strdup_printf("%s=\n", _("(Empty List)")); gchar *speakers = NULL; - if (e->speaker_alloc_bits) - speakers = edid_cea_speaker_allocation_describe(e->speaker_alloc_bits, 0); - else + if (e->speaker_alloc_bits) { + gchar *spk_tmp = edid_cea_speaker_allocation_describe(e->speaker_alloc_bits, 0); + speakers = gg_key_file_parse_string_as_value(spk_tmp, '|'); + g_free(spk_tmp); + } else speakers = g_strdup(_("(Unspecified)")); gchar *hex = edid_dump_hex(e, 0, 1); -- cgit v1.2.3