branch: externals/listen
commit 8b09b321bb8bacfb2e7240c59a4a5e84c2cb004e
Author: Adam Porter <[email protected]>
Commit: Adam Porter <[email protected]>

    Fix: (listen--status mpv) Only return slot value
    
    Because we don't do synchronous commands anymore, we can't get the
    "pause" property here.  It shouldn't be necessary, anyway...
---
 listen-mpv.el | 10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)

diff --git a/listen-mpv.el b/listen-mpv.el
index 7a3f63f970..ed81396bd1 100755
--- a/listen-mpv.el
+++ b/listen-mpv.el
@@ -192,15 +192,7 @@ Stops playing, clears playlist, adds FILE, and plays it."
 ;;   (listen--send player "stop"))
 
 (cl-defmethod listen--status ((player listen-player-mpv))
-  (or (listen-player-status player)
-      (setf (listen-player-status player)
-            (if (and (listen--playing-p player)
-                     (not (listen-mpv--get-property listen-player "pause")))
-                'playing
-              ;; TODO: Consider using "eof-reached" proeprty.
-              (if (listen-mpv--get-property listen-player "pause")
-                  'paused
-                'stopped)))))
+  (listen-player-status player))
 
 (cl-defmethod listen--pause ((player listen-player-mpv))
   "Pause playing with PLAYER."

Reply via email to