From: Francois Fleuret Date: Tue, 10 Mar 2015 11:25:57 +0000 (+0100) Subject: Reset media/current-information to nil when we start a new song / streaming. X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=commitdiff_plain;h=68437333c6fb4ed63860f22e12fccc9cc37e7c28;p=elisp.git Reset media/current-information to nil when we start a new song / streaming. --- diff --git a/media.el b/media.el index c193b45..b83bbef 100644 --- a/media.el +++ b/media.el @@ -254,6 +254,7 @@ and the bitrate. Should be nil if no information is available.") (time (get-text-property position 'time))) (if (not url) (media/remove-highlight) (run-hook-with-args 'media/before-play-hook url) + (setq media/current-information nil) (media/api/play url) ;; We keep the information of the url and the title (setq media/played-information (cons url (get-text-property position 'title)))