aboutsummaryrefslogtreecommitdiffstats
path: root/src/db/LightSong.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-08-28 12:35:26 +0200
committerMax Kellermann <max@duempel.org>2014-08-28 13:03:18 +0200
commit2efd8ef52ddf880c26d48bcb55eb1fd4c830481a (patch)
tree41110f0e91fad7ef12ac930ab19e5b96fa5962eb /src/db/LightSong.hxx
parent6ad933982f68f5fcbd1b3179bf5fed26f63aa792 (diff)
downloadmpd-2efd8ef52ddf880c26d48bcb55eb1fd4c830481a.tar.gz
mpd-2efd8ef52ddf880c26d48bcb55eb1fd4c830481a.tar.xz
mpd-2efd8ef52ddf880c26d48bcb55eb1fd4c830481a.zip
db/LightSong: use std::chrono::duration for start_ms and end_ms
Diffstat (limited to '')
-rw-r--r--src/db/LightSong.hxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/db/LightSong.hxx b/src/db/LightSong.hxx
index add9da855..26f68d18c 100644
--- a/src/db/LightSong.hxx
+++ b/src/db/LightSong.hxx
@@ -20,6 +20,7 @@
#ifndef MPD_LIGHT_SONG_HXX
#define MPD_LIGHT_SONG_HXX
+#include "Chrono.hxx"
#include "Compiler.h"
#include <string>
@@ -64,15 +65,15 @@ struct LightSong {
time_t mtime;
/**
- * Start of this sub-song within the file in milliseconds.
+ * Start of this sub-song within the file.
*/
- unsigned start_ms;
+ SongTime start_time;
/**
- * End of this sub-song within the file in milliseconds.
+ * End of this sub-song within the file.
* Unused if zero.
*/
- unsigned end_ms;
+ SongTime end_time;
gcc_pure
std::string GetURI() const {