aboutsummaryrefslogtreecommitdiff
path: root/emms-playing-time.el
diff options
context:
space:
mode:
authorwilliam.xwl <william.xwl>2005-09-22 16:15:00 +0000
committerwilliam.xwl <mwolson@gnu.org>2005-09-22 16:15:00 +0000
commit297b183bfafd53b72539fe57aaf88cb32acdb4d5 (patch)
tree9f2396ac02583f1a12691d0d7f021869d9f8fd57 /emms-playing-time.el
parent06aa86fe5f5edc7664442c53bf994362c1bfee21 (diff)
emms-playing-time: Since 'info-playing-time is an int now, changed
`emms-playing-time-display' accordingly. darcs-hash:20050922161519-e8fe6-10afec9d862e9706358a9d7da3f9041c6d5a8236.gz
Diffstat (limited to 'emms-playing-time.el')
-rw-r--r--emms-playing-time.el7
1 files changed, 3 insertions, 4 deletions
diff --git a/emms-playing-time.el b/emms-playing-time.el
index 2506e08..dc9fc12 100644
--- a/emms-playing-time.el
+++ b/emms-playing-time.el
@@ -102,10 +102,9 @@ e.g., display 02:37 instead of 02:37/05:49.")
(let* ((min (/ emms-playing-time 60))
(sec (% emms-playing-time 60))
(total-playing-time
- (or (string-to-int
- (emms-track-get
- (emms-playlist-current-selected-track)
- 'info-playing-time))
+ (or (emms-track-get
+ (emms-playlist-current-selected-track)
+ 'info-playing-time)
0))
(total-min-only (/ total-playing-time 60))
(total-sec-only (% total-playing-time 60)))