aboutsummaryrefslogtreecommitdiff
path: root/emms.el
diff options
context:
space:
mode:
Diffstat (limited to 'emms.el')
-rw-r--r--emms.el12
1 files changed, 8 insertions, 4 deletions
diff --git a/emms.el b/emms.el
index d50b8f3..10fa92e 100644
--- a/emms.el
+++ b/emms.el
@@ -1037,10 +1037,14 @@ or nil if no such player exists."
(if (not player)
(error "Don't know how to play track: %s" track)
(funcall (emms-player-get player 'start)
- track)
- (setq emms-player-playing-p player
- emms-player-paused-p nil)
- (run-hooks 'emms-player-started-hook)))))
+ track)))))
+
+(defun emms-player-started (player)
+ "Declare that the given EMMS PLAYER has started.
+This should only be done by the current player itself."
+ (setq emms-player-playing-p player
+ emms-player-paused-p nil)
+ (run-hooks 'emms-player-started-hook))
(defun emms-player-stop ()
"Stop the current EMMS player."