branch: externals/listen
commit 68cf91e468ec5e423d4fd8e621e663b83d0b12a4
Author: Adam Porter <[email protected]>
Commit: Adam Porter <[email protected]>
Fix: (listen--volume)
MPV does not return the newly set volume.
---
listen-mpv.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/listen-mpv.el b/listen-mpv.el
index f52413215b..5eff0bc960 100755
--- a/listen-mpv.el
+++ b/listen-mpv.el
@@ -294,7 +294,8 @@ VOLUME is an integer percentage."
;; We assume that the command will work, and we set the volume that
is being set,
;; because the Transient description uses the value from the player
slot, and the
;; callback can't make the Transient update itself.
- (setf (listen-player-volume player) (listen-mpv--set-property player
"volume" volume)))
+ (listen-mpv--set-property player "volume" volume)
+ (setf (listen-player-volume player) volume))
(listen-player-volume player))))
(cl-defmethod listen-mpv--get-property ((player listen-player-mpv) property
&key then)