aboutsummaryrefslogtreecommitdiffstats
path: root/src/db/plugins
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/db/plugins/ProxyDatabasePlugin.cxx6
-rw-r--r--src/db/plugins/simple/Song.cxx4
-rw-r--r--src/db/plugins/upnp/UpnpDatabasePlugin.cxx4
3 files changed, 7 insertions, 7 deletions
diff --git a/src/db/plugins/ProxyDatabasePlugin.cxx b/src/db/plugins/ProxyDatabasePlugin.cxx
index 0b358c0ba..c6b57d248 100644
--- a/src/db/plugins/ProxyDatabasePlugin.cxx
+++ b/src/db/plugins/ProxyDatabasePlugin.cxx
@@ -192,10 +192,10 @@ ProxySong::ProxySong(const mpd_song *song)
mtime = mpd_song_get_last_modified(song);
#if LIBMPDCLIENT_CHECK_VERSION(2,3,0)
- start_ms = mpd_song_get_start(song) * 1000;
- end_ms = mpd_song_get_end(song) * 1000;
+ start_time = SongTime::FromS(mpd_song_get_start(song));
+ end_time = SongTime::FromS(mpd_song_get_end(song));
#else
- start_ms = end_ms = 0;
+ start_time = end_time = SongTime::zero();
#endif
TagBuilder tag_builder;
diff --git a/src/db/plugins/simple/Song.cxx b/src/db/plugins/simple/Song.cxx
index 9e62d579e..ff7796b30 100644
--- a/src/db/plugins/simple/Song.cxx
+++ b/src/db/plugins/simple/Song.cxx
@@ -105,7 +105,7 @@ Song::Export() const
dest.real_uri = nullptr;
dest.tag = &tag;
dest.mtime = mtime;
- dest.start_ms = start_ms;
- dest.end_ms = end_ms;
+ dest.start_time = SongTime::FromMS(start_ms);
+ dest.end_time = SongTime::FromMS(end_ms);
return dest;
}
diff --git a/src/db/plugins/upnp/UpnpDatabasePlugin.cxx b/src/db/plugins/upnp/UpnpDatabasePlugin.cxx
index 66951f402..e16f230fb 100644
--- a/src/db/plugins/upnp/UpnpDatabasePlugin.cxx
+++ b/src/db/plugins/upnp/UpnpDatabasePlugin.cxx
@@ -66,7 +66,7 @@ public:
real_uri = real_uri2.c_str();
tag = &tag2;
mtime = 0;
- start_ms = end_ms = 0;
+ start_time = end_time = SongTime::zero();
}
};
@@ -360,7 +360,7 @@ visitSong(const UPnPDirObject &meta, const char *path,
song.real_uri = meta.url.c_str();
song.tag = &meta.tag;
song.mtime = 0;
- song.start_ms = song.end_ms = 0;
+ song.start_time = song.end_time = SongTime::zero();
return !selection.Match(song) || visit_song(song, error);
}