aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--emms-player-mpd.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/emms-player-mpd.el b/emms-player-mpd.el
index b048f35..1bc2251 100644
--- a/emms-player-mpd.el
+++ b/emms-player-mpd.el
@@ -578,9 +578,10 @@ buffer and move to NEW-SONG."
(lambda (closure id)
(let ((buffer (car closure))
(fn (cdr closure)))
- (funcall fn buffer id)))))
+ (when (functionp fn)
+ (funcall fn buffer id))))))
-(defun emms-player-mpd-sync-from-emms (callback)
+(defun emms-player-mpd-sync-from-emms (&optional callback)
"Synchronize the MusicPD playlist with the contents of the
current EMMS playlist.