Reset media/current-information to nil when we start a new song / streaming.
[elisp.git] / media.el
index c193b45..b83bbef 100644 (file)
--- 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)))