[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/listen a1987e2819 1/4: Fix: (listen-mpv--get-property)
From: |
ELPA Syncer |
Subject: |
[elpa] externals/listen a1987e2819 1/4: Fix: (listen-mpv--get-property) Ignore errors unless debugging |
Date: |
Mon, 9 Sep 2024 06:58:34 -0400 (EDT) |
branch: externals/listen
commit a1987e281958903f56f82f424c9cd140f5f4d092
Author: Adam Porter <adam@alphapapa.net>
Commit: Adam Porter <adam@alphapapa.net>
Fix: (listen-mpv--get-property) Ignore errors unless debugging
---
listen-mpv.el | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/listen-mpv.el b/listen-mpv.el
index 46069f753d..b40a9d1ab0 100755
--- a/listen-mpv.el
+++ b/listen-mpv.el
@@ -187,7 +187,10 @@ VOLUME is an integer percentage."
(pcase-let (((map error data) (listen--send player "get_property" property)))
(pcase error
("success" data)
- (_ (error "listen-mpv--get-property: Getting property %S failed: %S"
property error)))))
+ (_ (condition-case-unless-debug _
+ ;; Between tracks, getting a property may fail, which should
generally be ignored.
+ (error "listen-mpv--get-property: Getting property %S failed: %S"
property error)
+ (error nil))))))
(cl-defmethod listen-mpv--set-property ((player listen-player-mpv) property
&rest args)
(pcase-let (((map error data) (apply #'listen--send player "set_property"
property args)))