From d81907be1621cd827fadb3eb47aac4bc963a7d8a Mon Sep 17 00:00:00 2001 From: Milan Zamazal Date: Mon, 6 Jun 2022 19:55:25 +0200 Subject: [PATCH] Fix failure when setting a numeric property value --- pw-access.el | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/pw-access.el b/pw-access.el index 914c2e8..85510b3 100644 --- a/pw-access.el +++ b/pw-access.el @@ -172,9 +172,13 @@ Note this interface may not work with all PipeWire versions.") (pw-cli--parse-properties))) (defun pw-cli--format-property-value (value) - (if (consp value) - (concat "[ " (mapconcat #'pw-cli--format-property-value value ", ") " ]") - value)) + (cond + ((consp value) + (concat "[ " (mapconcat #'pw-cli--format-property-value value ", ") " ]")) + ((numberp value) + (number-to-string value)) + (t + value))) (defun pw-cli--format-property (property) (format "%s: %s" (car property) (pw-cli--format-property-value (cdr property))))