Browse Source

Fix bug with libmpdel-playback-seek

tags/v1.1.1^2
Damien Cassou 8 months ago
parent
commit
d25729a25f
Signed by: DamienCassou <damien@cassou.me> GPG Key ID: B68746238E59B548
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      libmpdel.el

+ 3
- 1
libmpdel.el View File

@@ -1029,7 +1029,9 @@ If HANDLER is non-nil, execute it with no parameter when seek
succeeds."
(interactive (list (read-string "New position (e.g., 67, -23, +12): ")
(lambda (_) (message "Seek done."))))
(libmpdel-send-command `("seekcur %S" ,time) (lambda (_) (funcall handler))))
(libmpdel-send-command
`("seekcur %S" ,time)
(when handler (lambda (_) (funcall handler)))))

;;;###autoload
(defun libmpdel-playback-set-random ()


Loading…
Cancel
Save