From 68437333c6fb4ed63860f22e12fccc9cc37e7c28 Mon Sep 17 00:00:00 2001 From: Francois Fleuret Date: Tue, 10 Mar 2015 12:25:57 +0100 Subject: [PATCH] Reset media/current-information to nil when we start a new song / streaming. --- media.el | 1 + 1 file changed, 1 insertion(+) 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))) -- 2.20.1