diff options
author | Burt P <pburt0@gmail.com> | 2019-08-20 03:21:31 -0500 |
---|---|---|
committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2019-08-22 23:10:17 +0200 |
commit | e6dcfd248363bf2dbaf65eec50efd7ee4e472d61 (patch) | |
tree | 3930b8977987d4a3b9117481d63cccb76f9db871 /modules/devices | |
parent | a688b9caa64c1a75c8d151fa58ca74a94afe0d85 (diff) |
monitors: some DisplayID support
Signed-off-by: Burt P <pburt0@gmail.com>
Diffstat (limited to 'modules/devices')
-rw-r--r-- | modules/devices/monitors.c | 8 |
1 files changed, 5 insertions, 3 deletions
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); |