Skip to content

Commit

Permalink
db/ProxyDatabasePlugin: read millisecond values for range start and end
Browse files Browse the repository at this point in the history
  • Loading branch information
datasone committed Apr 11, 2023
1 parent d734d15 commit 143b17b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/db/plugins/ProxyDatabasePlugin.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,8 @@ ProxySong::ProxySong(const mpd_song *song)
if (_mtime > 0)
mtime = std::chrono::system_clock::from_time_t(_mtime);

start_time = SongTime::FromS(mpd_song_get_start(song));
end_time = SongTime::FromS(mpd_song_get_end(song));
start_time = SongTime::FromMS(mpd_song_get_start_ms(song));
end_time = SongTime::FromMS(mpd_song_get_end_ms(song));

const auto *af = mpd_song_get_audio_format(song);
if (af != nullptr) {
Expand Down

0 comments on commit 143b17b

Please sign in to comment.