aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Olson <mwolson@gnu.org>2006-07-27 18:35:00 +0000
committerMichael Olson <mwolson@gnu.org>2006-07-27 18:35:00 +0000
commitecc6f6e523cc478b960c3da2ca63252c178bd0e2 (patch)
tree6dcab5903af517f0a43fa35885fabeaf23ea63e9
parent2a51c5acdf238d6c6de5811ab0b9bedc90f57db6 (diff)
emms-info: If the file does not exist, don't update its info and file-mtime. This fixes an error.
darcs-hash:20060727183504-1bfb2-9943ddf765b56f83479b08cdffefb0e63e6a20f2.gz
-rw-r--r--emms-info.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/emms-info.el b/emms-info.el
index 7e0bfee..6976657 100644
--- a/emms-info.el
+++ b/emms-info.el
@@ -93,9 +93,9 @@ Return t when the track got changed."
(name (emms-track-get track 'name)))
;; if the file's been modified or is new
- (when (or (not info-mtime)
- (emms-time-less-p
- info-mtime file-mtime))
+ (when (and file-mtime
+ (or (not info-mtime)
+ (emms-time-less-p info-mtime file-mtime)))
(run-hook-with-args 'emms-info-functions track)
;; not set by info functions
(emms-track-set track 'info-mtime file-mtime)