aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--emms-mode-line.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/emms-mode-line.el b/emms-mode-line.el
index 8e65128..f865de4 100644
--- a/emms-mode-line.el
+++ b/emms-mode-line.el
@@ -102,7 +102,8 @@ Optional TRACK is used to be compatible with
(defun emms-mode-line-alter-mode-line ()
"Update the mode-line with song info."
- (when emms-mode-line-mode-line-function
+ (when (and emms-mode-line-mode-line-function
+ emms-player-playing-p)
(setq emms-mode-line-string
(funcall emms-mode-line-mode-line-function))
(force-mode-line-update)))