From 99008c5ad9671c93c83c51107de9b7070db6d8ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Thu, 27 Dec 2018 11:44:46 +0100 Subject: [PATCH] module/mpd: "elapsed" tag is now a realtime tag (when state == playing) --- modules/mpd/mpd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/mpd/mpd.c b/modules/mpd/mpd.c index c7ebb70..8af93c6 100644 --- a/modules/mpd/mpd.c +++ b/modules/mpd/mpd.c @@ -95,7 +95,9 @@ content(struct module *mod) tag_new_string("pos", pos), tag_new_string("end", end), tag_new_int("duration", m->duration), - tag_new_int_range("elapsed", m->elapsed, 0, m->duration), + tag_new_int_realtime( + "elapsed", m->elapsed, 0, m->duration, + m->state == STATE_PLAY ? TAG_REALTIME_SECONDS : TAG_REALTIME_NONE), }, .count = 8, };